static void Main() { Application.SetHighDpiMode(HighDpiMode.SystemAware); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); StartInitDBFile(); if (ConfigController.ValidateAdminPassword(Crypto.admin_pass)) { Application.Run(new Password_Manager()); } else { if (Crypto.admin_pass != "") { MessageBox.Show("Contraseña Incorrecta"); } } }
private static void CreateInitialDatabase() { MessageBox.Show("No se encontró base de datos, ingresar contraseña maestra (no la olvides)"); ShowInputDialog(ref Crypto.admin_pass); ConfigController.CreateInitConfig(Crypto.admin_pass, GetAppVersion()); }