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

22 lines
661 B
C#
Raw Normal View History

2023-04-02 22:10:42 +02:00
namespace GUI;
public delegate string DataRequest(); //Fire whenever a specific field of ProfileHandler.CurrentProfile is needed
internal static class Program
2023-03-24 10:17:54 +01:00
{
2023-04-02 22:10:42 +02:00
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
2023-03-24 10:17:54 +01:00
{
2023-04-02 22:10:42 +02:00
ConfigFileManager.Init();
ApplicationConfiguration.Initialize();
Application.Run(mainForm);
2023-03-24 10:17:54 +01:00
}
2023-04-02 22:10:42 +02:00
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
}