Exemplo n.º 1
0
        private void Btn_save_Click(object sender, EventArgs e)
        {
            if (txt_name.Text != string.Empty)
            {
                r.AddReserve(txt_name.Text);
                MessageBox.Show("تم التسجيل بنجاح", "عمليه التسجيل", MessageBoxButtons.OK);

                Frm_RserveDetails.getmain.comboBox1.DataSource = r.SelectReserve();

                Frm_RserveDetails.getmain.comboBox1.DisplayMember = "masrof_type";
                Frm_RserveDetails.getmain.comboBox1.ValueMember   = "ID_masrof";
                this.Close();
            }

            else
            {
                MessageBox.Show("من فضلك لابد من كتابه نوع المصروف");
            }
        }