Пример #1
0
 public static TempEmpImport GetInstance()
 {
     if (weqform == null || weqform.IsDisposed)
     {
         weqform = new TempEmpImport();
     }
     return(weqform);
 }
Пример #2
0
        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("没有权限!");
            }
        }