Exemple #1
0
        /// <summary>
        /// 房间信息管理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsmRoomManage_Click(object sender, EventArgs e)
        {
            RoomForm Room = new RoomForm();

            Room.MdiParent = this;
            Room.Show();
        }
Exemple #2
0
        private void RoomToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.hideSubForms();
            RoomToolStripMenuItem.BackColor = Color.Orange;
            if (roomFrm.IsDisposed)
            {
                roomFrm = new RoomForm();
            }
            roomFrm.MdiParent = this;

            roomFrm.StartPosition = FormStartPosition.CenterScreen;
            roomFrm.Size          = this.GetMdiAreaSize();

            roomFrm.Show();
        }