public override void btn_Add_Click(object sender, EventArgs e) { frmPurchaseOrderAddEdit frm = new frmPurchaseOrderAddEdit(); frm.FormClosed += frmPurchaseOrderAddEdit_FormClosed; frm.ShowDialog(); }
public frmPurchaseLineAddEdit(frmPurchaseOrderAddEdit _frmPurchaseOrderAddEdit) { InitializeComponent(); _bDProductGroupWrapper = new BDProductGroupWrapper(); _bDProductWrapper = new BDProductWrapper(); this.frmPurchaseOrderAddEditObj = _frmPurchaseOrderAddEdit; FillProductGroupCBX(); }
public override void btn_Edit_Click(object sender, EventArgs e) { if (dgrid_Result.SelectedRows.Count != 0) { if (!Convert.ToBoolean(dgrid_Result.SelectedRows[0].Cells["IsClosed"].Value)) { frmPurchaseOrderAddEdit frm = new frmPurchaseOrderAddEdit(); frm.FormClosed += frmPurchaseOrderAddEdit_FormClosed; frm.ShowDialog(); } else { MessageBox.Show("لا يمكنك تعديل هذه الفاتوره حيث انها مغلقه"); } } }
public override void btn_Edit_Click(object sender, EventArgs e) { if (dgrid_Result.SelectedRows.Count != 0) //if (!Convert.ToBoolean(dgrid_Result.SelectedRows[0].Cells["IsClosed"].Value)) { int headerID=Convert.ToInt32(dgrid_Result.SelectedRows[0].Cells[0].Value); frmPurchaseOrderAddEdit frm = new frmPurchaseOrderAddEdit(headerID); //frm.FormClosed += frmPurchaseOrderAddEdit_FormClosed; frm.ShowDialog(); } else MessageBox.Show("لا يمكنك تعديل هذه الفاتوره حيث انها مغلقه"); }
public override void btn_Add_Click(object sender, EventArgs e) { frmPurchaseOrderAddEdit frm = new frmPurchaseOrderAddEdit(); // frm.FormClosed += frmPurchaseOrderAddEdit_FormClosed; frm.ShowDialog(); }