Exemple #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     if (Fnc.IsUserAdministrator() == true)
     {
         Application.Run(new frmLogin());
     }
     else
     {
         MessageBox.Show("Please Run As Administrator!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }