bro i can't even keep track anymore
This commit is contained in:
@@ -2,7 +2,7 @@ using Profiles;
|
||||
|
||||
namespace Password_Manager
|
||||
{
|
||||
public delegate string ProfileDataRequest();
|
||||
public delegate string ProfileDataRequest(); //Fire whenever a specific field of ProfileHandler.CurrentProfile is needed
|
||||
internal static class Program
|
||||
{
|
||||
/// <summary>
|
||||
@@ -13,7 +13,6 @@ namespace Password_Manager
|
||||
{
|
||||
ApplicationConfiguration.Initialize();
|
||||
ProfileHandler.Init();
|
||||
|
||||
Application.Run(mainForm);
|
||||
}
|
||||
|
||||
@@ -21,7 +20,9 @@ namespace Password_Manager
|
||||
() => ProfileHandler.CurrentProfile.Name,
|
||||
() => ProfileHandler.CurrentProfile.Path,
|
||||
() => ProfileHandler.ListOfProfiles.GetNameList(),
|
||||
(profileName) => ProfileHandler.ChangeProfiles(profileName)
|
||||
(profileName) => ProfileHandler.ChangeProfiles(profileName),
|
||||
() => ProfileHandler.SaveProfiles(),
|
||||
(profileName, profilePath) => ProfileHandler.AddProfile(profileName, profilePath)
|
||||
); //needed at creation so that MainForm may pass this method down to other classes in its constructor
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user