bro i can't even keep track anymore

This commit is contained in:
2023-03-27 09:17:06 +02:00
parent df33170f71
commit 311a5cc4ca
12 changed files with 248 additions and 131 deletions

View File

@@ -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
}
}