示例#1
0
 private void tsPatientRoom_Click(object sender, EventArgs e)
 {
     if (room == null)
     {
         room             = new frmPatientRoom();
         room.MdiParent   = this;
         room.FormClosed += new FormClosedEventHandler(room_FormClosed);
         room.Show();
     }
     else
     {
         room.Activate();
         room.WindowState = FormWindowState.Normal;
     }
 }
示例#2
0
 void room_FormClosed(object sender, FormClosedEventArgs e)
 {
     room = null;
 }