Пример #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     if (CheckInfo() == 1)
     {
         if (tenDichVu.Contains(txtTenDV.Text))
         {
             MessageBox.Show("Dịch Vụ đã thêm rồi !!!");
         }
         else
         {
             DichVu_HT_HS dvhths = new DichVu_HT_HS(int.Parse(comboBoxHTHS.Text), comboBoxTheLoai.Text, comboBoxDV.Text, txtTenDV.Text, int.Parse(txtDonGia.Text));
             client.AddDichVu_BE(JsonConvert.SerializeObject(dvhths));
             MessageBox.Show("Thêm dịch vụ thành công");
             FormDichVu_Load_1(sender, e);
             ClearTextBox();
         }
     }
 }