private void Btn_save_Click(object sender, EventArgs e) { if (txt_amont.Text == "") { MessageBox.Show("من فضلك ادخال المبلغ "); return; } if (comboBox1.Text != string.Empty) { r.AddReserveDetails(Convert.ToInt32(comboBox1.SelectedValue), txt_description.Text, Convert.ToDecimal(txt_amont.Text), dateTimePicker1.Value, Program.Id_USer); MessageBox.Show("تم التسجيل بنجاح", "عمليه التسجيل"); dataGridView1.DataSource = r.SelectReserveDetails(); Clear(); } else { MessageBox.Show("من فضلك قم بااختيار نوع المصروف"); } }