private void simpleButton1_Click(object sender, EventArgs e) { try //EKLE { frmMusteriEkle frmMusteriEkle = new frmMusteriEkle("-1"); frmMusteriEkle.ShowDialog(); } catch (Exception hata) { MessageBox.Show(hata.Message); } }
private void btnEkle_Click(object sender, EventArgs e) { try { frmMusteriEkle frmMusteriEkle = new frmMusteriEkle("-1"); frmMusteriEkle.FormClosed += FrmMusteriEkle_FormClosed; frmMusteriEkle.ShowDialog(); } catch (Exception hata) { MessageBox.Show(hata.Message); } }
private void btnGuncelle_Click(object sender, EventArgs e) { try { frmMusteriEkle frmMusteriEkle = new frmMusteriEkle(gvList.GetFocusedRowCellDisplayText("CustomerId")); frmMusteriEkle.FormClosed += FrmMusteriEkle_FormClosed; frmMusteriEkle.ShowDialog(); } catch (Exception hata) { MessageBox.Show(hata.Message); } }