Пример #1
0
 public static FrmRoomAddOrModify Single(HandleStatus status, RoomInfo oldRoom)
 {
     if (instance == null || instance.IsDisposed)
     {
         instance = new FrmRoomAddOrModify(status, oldRoom);
     }
     return(instance);
 }
Пример #2
0
        private void ShowFrmRoomAddOrModify(HandleStatus status, RoomInfo room)
        {
            this.Hide();
            FrmRoomAddOrModify fraom = FrmRoomAddOrModify.Single(status, room);

            fraom.FormClosed += fraom_FormClosed;
            fraom.Show();
        }
Пример #3
0
        private void ShowFrmRoomAddOrModify(int temp, RoomInfo room)
        {
            this.Hide();
            FrmRoomAddOrModify frm = FrmRoomAddOrModify.Single(temp, room);

            frm.FormClosed += frm_FormClosed;
            frm.Show();
        }
Пример #4
0
        private void ShowFrmRoomAddOrModify(int temp, RoomInfo room)
        {
            this.Hide();//不是关闭是隐藏  不是close!!
            FrmRoomAddOrModify fram = FrmRoomAddOrModify.Single(temp, room);

            //     fram.Show();  不是写在这里
            fram.FormClosed += new FormClosedEventHandler(fram_FormClose);
            fram.Show();
        }
Пример #5
0
 private static int Temp;//存标识
 public static FrmRoomAddOrModify Single(int temp, RoomInfo room)
 {
     if (instance == null || instance.IsDisposed)
     {
         instance = new FrmRoomAddOrModify(room);
         Temp     = temp;
     }
     return(instance);
 }
Пример #6
0
 public static FrmRoomAddOrModify Single(int temp, RoomInfo room)
 {
     if (instance == null || instance.IsDisposed)
     {
         instance = new FrmRoomAddOrModify(room);
         Temp = temp;
     }
     return instance;
 }