예제 #1
0
 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");
         }
     }
 }
예제 #2
0
 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());
 }