Exemplo n.º 1
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     Models.RoomMod add = new Models.RoomMod();
     if (txtAcreage.Text == "")
     {
         txtAcreage.Text = "0";
     }
     if (txtCapacity.Text == "")
     {
         txtCapacity.Text = "0";
     }
     if (txtRoomName.Text == "")
     {
         txtRoomName.Text = "P.Mới";
     }
     if (add.addRoom(Value()) == true)
     {
         Close();
     }
 }