public override void btn_Edit_Click(object sender, EventArgs e) { int productGroupID = 0; if (dgrid_Result.SelectedRows[0].Cells["AdjustStockID"].Value != null) { productGroupID = Convert.ToInt32(dgrid_Result.SelectedRows[0].Cells["AdjustStockID"].Value); } else { MessageBox.Show("لابد من اختيار مجموعة"); } FrmAdjustStockAddEdit frm = new FrmAdjustStockAddEdit(productGroupID, this); frm.ShowDialog(); }
public override void btn_Edit_Click(object sender, EventArgs e) { int productGroupID = 0; if (dgrid_Result.SelectedRows[0].Cells["AdjustStockID"].Value != null) { productGroupID = Convert.ToInt32(dgrid_Result.SelectedRows[0].Cells["AdjustStockID"].Value); } else { MessageBox.Show("لابد من اختيار مجموعة"); } FrmAdjustStockAddEdit frm = new FrmAdjustStockAddEdit(productGroupID, this); frm.ShowDialog(); }
/// <summary> /// Events Override /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public override void btn_Add_Click(object sender, EventArgs e) { FrmAdjustStockAddEdit frm = new FrmAdjustStockAddEdit(this); frm.ShowDialog(); }
/// <summary> /// Events Override /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public override void btn_Add_Click(object sender, EventArgs e) { FrmAdjustStockAddEdit frm = new FrmAdjustStockAddEdit(this); frm.ShowDialog(); }