This repository has been archived on 2025-09-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Password-Manager-Legacy/GUI/Program.cs
2023-04-02 22:07:27 +02:00

23 lines
729 B
C#

namespace GUI
{
public delegate string DataRequest(); //Fire whenever a specific field of ProfileHandler.CurrentProfile is needed
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
ConfigFileManager.Init();
ApplicationConfiguration.Initialize();
Application.Run(mainForm);
}
public static MainForm mainForm = new MainForm(
() => ConfigFileManager.GetPath(),
() => ConfigFileManager.GetRecipient()
); //needed at creation so that MainForm may pass this method down to other classes in its constructor
}
}