private void barbtnHome_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Account LoginAccount = this.LoginAccount; var f = new fQuanLyKaiOKen(LoginAccount); if (ExistForm(f) == true) { return; } f.MdiParent = this; f.Show(); }
public fMain(Account acc) { InitializeComponent(); DateTime now = DateTime.Now; lblTime.Text = now.ToString(); this.LoginAccount = acc; Account LoginAccount = this.LoginAccount; var f = new fQuanLyKaiOKen(LoginAccount); if (ExistForm(f) == true) { return; } f.MdiParent = this; f.Show(); }