private void btnLogIn_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { MDIForms.frmLogin login = new MDIForms.frmLogin(); login.ShowDialog(); setAuthority(); UnLoadForm(); }
public frmMain() { InitializeComponent(); loadSkin("Style.txt"); MDIForms.frmLogin login = new MDIForms.frmLogin(); login.ShowDialog(); setAuthority(); UnLoadForm(); if (btnReceipt.Enabled) btnReceipt_ItemClick(null, null); }
private void btnLogOut_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Program.isLogin = false; Program.userLevel = Level.Guest; Program.username = "******"; Program.password = "******"; MDIForms.frmLogin login = new MDIForms.frmLogin(); login.ShowDialog(); setAuthority(); UnLoadForm(); }
public frmMain() { InitializeComponent(); loadSkin("Style.txt"); MDIForms.frmLogin login = new MDIForms.frmLogin(); login.ShowDialog(); setAuthority(); UnLoadForm(); if (btnReceipt.Enabled) { btnReceipt_ItemClick(null, null); } }