static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); fmDN = new fmDangNhap(); Application.Run(fmDN); }
private void btnDangnhap_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Form fm = this.CheckExists(typeof(fmDangNhap)); if (fm != null) { fm.Activate(); } else { fmDangNhap f = new fmDangNhap(); f.MdiParent = this; f.Show(); } }