kill me
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
using Profiles;
|
||||
|
||||
namespace Password_Manager
|
||||
{
|
||||
public delegate string ProfileDataRequest();
|
||||
internal static class Program
|
||||
{
|
||||
/// <summary>
|
||||
@@ -8,11 +11,17 @@ namespace Password_Manager
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
ProfileHandler.ListOfProfiles = new ProfileList();
|
||||
ApplicationConfiguration.Initialize();
|
||||
ProfileHandler.Init();
|
||||
|
||||
Application.Run(mainForm);
|
||||
}
|
||||
|
||||
public static MainForm mainForm = new MainForm();
|
||||
public static MainForm mainForm = new MainForm(
|
||||
() => ProfileHandler.CurrentProfile.Name,
|
||||
() => ProfileHandler.CurrentProfile.Path,
|
||||
() => ProfileHandler.ListOfProfiles.GetNameList(),
|
||||
(profileName) => ProfileHandler.ChangeProfiles(profileName)
|
||||
); //needed at creation so that MainForm may pass this method down to other classes in its constructor
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user