Esempio n. 1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     //Application.Run(new Form1());
     Application.Run(LoginWinform.getForm());
 }
 private static void SetTextOfLogin(string text)
 {
     try
     {
         if (LoginWinform.getForm().pingLbl.InvokeRequired)
         {
             SetLblTextCallback d = new SetLblTextCallback(SetTextOfLogin);
             LoginWinform.getForm().pingLbl.Invoke(d, new object[] { text });
         }
         else
         {
             LoginWinform.getForm().pingLbl.Text = text;
         }
     }
     catch (Exception ex)
     {
     }
 }
Esempio n. 3
0
 private void btnExit_Click(object sender, EventArgs e)
 {
     this.Hide();
     LoginWinform.getForm().Show();
 }