public static TempEmpImportUpdate GetInstance()
 {
     if (weqform == null || weqform.IsDisposed)
     {
         weqform = new TempEmpImportUpdate();
     }
     return(weqform);
 }
Example #2
0
        private void barButtonItem批量更新_ItemClick(object sender, ItemClickEventArgs e)
        {
            bool right = TempEmpUpdate.ModifyRight();

            if (right)
            {
                TempEmpImportUpdate Frm = TempEmpImportUpdate.GetInstance();
                Frm.TopLevel = false;
                Frm.Parent   = this;
                Frm.Show();
                Frm.BringToFront();
            }
            else
            {
                MessageBox.Show("没有权限!");
            }
        }