private void frm_main_Load(object sender, EventArgs e) { try { ribbonControl.Minimized = true; //timer_InternetNotOk.Enabled = true; //timer_InternetOk.Enabled = false; timer_Refresh.Enabled = true; Frm_LanMtc frm = new Frm_LanMtc(); int a = AddTab.tabadd(xtraTabbedMdiManager1, frm); if (a == 0) { frm.MdiParent = this; frm.Show(); } // khởi chạy đồng hồ thời gian TimeNow = new Thread(new ThreadStart(Time)); TimeNow.Start(); } catch (Exception ex) { logger.Error(ex.ToString()); } }
private void barButtonItem5_ItemClick(object sender, ItemClickEventArgs e) { Frm_LanMtc frm = new Frm_LanMtc(); //frm.MdiParent = this; int a = AddTab.tabadd(xtraTabbedMdiManager1, frm); if (a == 0) { frm.MdiParent = this; frm.Show(); } }