private void ShowFrmDeskAddOrModify(int temp, DeskInfo desk)
        {
            FrmDeskAddOrModify frm = FrmDeskAddOrModify.Single(temp, desk);

            frm.FormClosed += frm_FormClosed;
            frm.Show();
        }
Exemple #2
0
        private void ShowFrmDeskAddOrModify(HandleStatus status, DeskInfo desk)
        {
            this.Hide();
            FrmDeskAddOrModify fdaom = FrmDeskAddOrModify.Single(status, desk);

            fdaom.FormClosed += fraom_FormClosed;
            fdaom.Show();
        }
 public static FrmDeskAddOrModify Single(int temp, DeskInfo desk)
 {
     if (_instance == null || _instance.IsDisposed)
     {
         _instance = new FrmDeskAddOrModify(desk);
         Temp      = temp;
     }
     return(_instance);
 }
        public static FrmDeskAddOrModify Single(HandleStatus status,

                                                DeskInfo oldDesk)
        {
            if (instance == null || instance.IsDisposed)
            {
                instance = new FrmDeskAddOrModify(status, oldDesk);
            }
            return(instance);
        }