Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox2.Text == "" || textBox1.Text == "" || textBox5.Text == "" || textBox4.Text == "" || textBox8.Text == "")
            {
                MessageBox.Show("请输入必填信息", "警告");
                return;
            }
            roomInfo ri = new roomInfo();

            if (!ri.roomStatus[textBox3.Text])
            {
                MessageBox.Show("输入的房号有误或房间不可用", "警告");
                textBox3.Text = "";
                return;
            }
            checkinConfirm cc = new checkinConfirm(this);

            cc.ShowDialog();
        }
Exemplo n.º 2
0
        private void button4_Click(object sender, EventArgs e)
        {
            roomInfo r = new roomInfo();

            r.Show();
        }