Esempio n. 1
0
 private void btn_ADD_payedmoney_Click(object sender, EventArgs e)
 {
     PL.FRM_add_PhoneNote frm = new  PL.FRM_add_PhoneNote();
     frm.ShowDialog();
     frm.Close();
     load_all_phonenote();
     cmbCUT_Name.Items.Clear();
     load_all_phonenoteName();
 }
Esempio n. 2
0
 private void تعديلToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("هل انت متاكد من تعديل معلومات رقم التليفون؟", "عملية التعديل", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
     {
         PL.FRM_add_PhoneNote frm = new PL.FRM_add_PhoneNote();
         frm.TB_ID.Text            = this.dataGridView1.CurrentRow.Cells[0].Value.ToString();
         frm.tbname.Text           = this.dataGridView1.CurrentRow.Cells[1].Value.ToString();
         frm.tbPhone.Text          = this.dataGridView1.CurrentRow.Cells[2].Value.ToString();
         frm.Text                  = "تعديل معلومات رقم التليفون " + this.dataGridView1.CurrentRow.Cells[1].Value.ToString();
         frm.btn_ADD_Customer.Text = "تعديل";
         frm.state                 = "update";
         frm.ShowDialog();
         load_all_phonenote();
     }
     else
     {
         MessageBox.Show("تم الغاء عملية التعديل", "عملية التعديل", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }