private void simpleButtonAjouter_Click(object sender, EventArgs e) { شكاية plai = new شكاية(); plai.Show(); this.Close(); }
private void simpleButtonModification_Click(object sender, EventArgs e) { if (dataGridView1.CurrentRow != null) { String idplaint = dataGridView1.SelectedRows[0].Cells[0].Value.ToString(); شكاية plai = new شكاية(idplaint); plai.Show(); this.Close(); history.AddHistory(" جدول الشكايات ", "التعديل", dataGridView1.SelectedRows[0].Cells[0].Value.ToString()); } }
private void barButtonItem3_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { شكاية c = new شكاية(); c.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void simpleButtonModification_Click(object sender, EventArgs e) { if (dataGridView1.CurrentRow != null) { String idplaint = dataGridView1.SelectedRows[0].Cells[0].Value.ToString(); شكاية plai = new شكاية(idplaint); plai.btnModif.Visible = true; plai.Show(); //this.Hide(); history.AddHistory(" جدول الشكايات ", "التعديل", dataGridView1.SelectedRows[0].Cells[0].Value.ToString()); } else { MessageBox.Show("لا يمكنك التعديل . يجب اختيار الشكاية المراد التعديل عليها", "تنبيه", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public المشتكون_بهم(شكاية chikaya) { op = new PlaintesOperations(); InitializeComponent(); this.chikaya = chikaya; }