示例#1
0
 public void refreshroom(string rid)
 {
     ws.roomer a = con.TheRoomInformation(rid);
     label11.Text = a.roomid.ToString();
     label12.Text = a.number.ToString();
     label13.Text = a.houseowner;
     label15.Text = a.type;
 }
示例#2
0
        private void toolStripButton4_Click(object sender, EventArgs e) //创建房间
        {
            AddRoom      frm = new AddRoom();
            DialogResult dr  = frm.ShowDialog();

            if (dr == DialogResult.OK)
            {
                ws.roomer rm = frm.rm;
                rm.roomid = int.Parse(id) * 10 + rnum;
                con.createroom(rm);
                refreshroomlist();
                refreshroom(rm.roomid.ToString());
            }
        }
示例#3
0
 private void btnAdd_Click(object sender, EventArgs e)  //创建房间
 {
     if (txtRoomName.Text.Trim().Equals(string.Empty) || txtRoomPeople.Text.Trim().Equals(string.Empty))
     {
         MessageBox.Show("请输入完整的信息!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     else
     {
         //*************************************************************************************************************
         //              房间信息控件名:txtRoomName             房间人数控件名:txtRoomPeople
         //*************************************************************************************************************
         rm        = new ws.roomer();
         rm.type   = txtRoomName.SelectedText;
         rm.number = Int32.Parse(txtRoomPeople.Text.Trim());
         //实现添加功能
     }
 }