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

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

            frm.FormClosed += frm_FormClosed;
            frm.Show();
        }
Example #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();
        }
 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);
 }
 public static FrmRoomAddOrModify Single(int temp, RoomInfo room)
 {
     if (instance == null || instance.IsDisposed)
     {
         instance = new FrmRoomAddOrModify(room);
         Temp = temp;
     }
     return instance;
 }