예제 #1
0
        private void qtmanager_Click(object sender, EventArgs e)
        {
            ManagerInfoList miList = ManagerInfoList.Create();

            miList.Show();
            miList.Focus();
        }
예제 #2
0
 public static ManagerInfoList Create()
 {
     if (managerInfoList == null || managerInfoList.IsDisposed)
     {
         managerInfoList = new ManagerInfoList();
     }
     return(managerInfoList);
 }
        //员工管理
        private void menuManager_Click(object sender, EventArgs e)
        {
            //单例实现1
            ManagerInfoList miList = FormFactory.CreateMIL();

            miList.Show();
            miList.Focus();
        }
예제 #4
0
 public static ManagerInfoList CraeteManagerInfoList()
 {
     if (_managerInfoList == null || _managerInfoList.IsDisposed)
     {
         _managerInfoList = new ManagerInfoList();
     }
     return(_managerInfoList);
 }
예제 #5
0
 public static ManagerInfoList Create()
 {
     if (mil == null || mil.IsDisposed)
     {
         mil = new ManagerInfoList();
     }
     return(mil);
 }
 //创建对象的方法
 public static ManagerInfoList CreateMIL()
 {
     //判断对象是否存在,或是否已经被释放
     if (managerInfoList == null || managerInfoList.IsDisposed)
     {
         //新建对象
         managerInfoList = new ManagerInfoList();
     }
     //直接返回对象
     return(managerInfoList);
 }
예제 #7
0
        private void ms_Manager_Click(object sender, EventArgs e)
        {
            ManagerInfoList mi_from = new ManagerInfoList();

            mi_from.ShowDialog();
        }
예제 #8
0
        private void menuManager_Click(object sender, EventArgs e)
        {
            var miList = new ManagerInfoList();

            miList.Show();
        }