示例#1
0
        private void RentButton_Click(object sender, EventArgs e)
        {
            fRent f = new fRent(new fRoom(), this.label1.Text);

            this.Hide();
            f.ShowDialog();
            mainMenu.ReLoadRoomStatus();
            mainMenu.ReLoadStatusOfRooms();
            this.Reload(mainMenu.LoadRoomInfo(RoomCode), RoomCode);
            this.Show();
        }
示例#2
0
        private void btnRent_Click(object sender, EventArgs e)
        {
            if (AccountManagementDAO.Instance.checkShowForm(getGroupCode(), "fRent") == true)
            {
                fRent _rentRoom = new fRent(this);
                this.Hide();

                _rentRoom.ShowDialog();
                this.Show();
            }
            else
            {
                MessageBox.Show("Bạn không có quyền truy cập");
            }
        }
示例#3
0
        private void btnRent_Click(object sender, EventArgs e)
        {
            fRent _rentRoom = new fRent();

            _rentRoom.Show();
        }