示例#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);
 }
 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();
        }