27 lines
850 B
C#
27 lines
850 B
C#
using Profiles;
|
|
|
|
namespace Password_Manager
|
|
{
|
|
public delegate string ProfileDataRequest();
|
|
internal static class Program
|
|
{
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
ApplicationConfiguration.Initialize();
|
|
ProfileHandler.Init();
|
|
|
|
Application.Run(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
|
|
}
|
|
} |