public static TempEmpImport GetInstance() { if (weqform == null || weqform.IsDisposed) { weqform = new TempEmpImport(); } return(weqform); }
private void barButtonItem临时工导入_ItemClick(object sender, ItemClickEventArgs e) { bool right = TempEmpUpdate.ModifyRight(); if (right) { TempEmpImport Frm = TempEmpImport.GetInstance(); Frm.TopLevel = false; Frm.Parent = this; Frm.Show(); Frm.BringToFront(); } else { MessageBox.Show("没有权限!"); } }