Пример #1
0
 private void btnLogIn_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     Forms.frmLogin frmlogin = new Forms.frmLogin();
     frmlogin.ShowDialog();
     if (Class.App.UserLogin != null)
         btnLogIn.Enabled = false;
 }
Пример #2
0
 private void btnLogIn_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     Forms.frmLogin frmlogin = new Forms.frmLogin();
        frmlogin.ShowDialog();
     //frmlogin.Show();
     if (Class.App.UserLogin != null)
         btnLogIn.Enabled = false;
        /* Waiting.ShowWaitForm();
     if (!_checkControl("frmLogin"))
     {
         Forms.frmLogin frm = new Forms.frmLogin();
         frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
         frm.TopLevel = false;
         frm.Dock = System.Windows.Forms.DockStyle.Fill;
         pControls.Controls.Add(frm);
         frm.Show();
     }
     if (Class.App.UserLogin != null)
         btnLogIn.Enabled = false;
     Waiting.CloseWaitForm();*/
 }