void Add() { Sell.FrmCustomerAcc newForm = new FrmCustomerAcc(); newForm._Ref = 0; newForm._FormMod = Enums.enmFormMod.Yeni; //yeniForm.MdiParent = frmAnaMenu.ActiveForm; newForm.ShowDialog(); if (newForm.DialogResult == DialogResult.OK) { FillData(); } }
void Show() { if (grdStock.RowCount > 0) { if (grdStock.FocusedRowHandle != -1) { Sell.FrmCustomerAcc newForm = new FrmCustomerAcc(); newForm._Ref = int.Parse(grdStock.GetFocusedRowCellValue("Ref").ToString()); newForm._MenuNo = this._MenuNo; newForm._FormMod = Enums.enmFormMod.Goruntule; newForm.ShowDialog(); } } }
void Update() { if (grdStock.RowCount > 0) { if (grdStock.FocusedRowHandle != -1) { Sell.FrmCustomerAcc newForm = new FrmCustomerAcc(); newForm._Ref = int.Parse(grdStock.GetFocusedRowCellValue("Ref").ToString()); newForm._MenuNo = this._MenuNo; newForm._FormMod = Enums.enmFormMod.Guncelle; //yeniForm.MdiParent = frmAnaMenu.ActiveForm; newForm.ShowDialog(); } } FillData(); }