private void productGridControl_MouseClick(object sender, MouseEventArgs e) { if (productGridView.RowCount > 0) { btnSave.Enabled = true; try { lblProductName.Text = productGridView.GetRowCellDisplayText(productGridView.FocusedRowHandle, productGridView.Columns["ProductName"]); Param.product = productGridView.GetRowCellDisplayText(productGridView.FocusedRowHandle, productGridView.Columns["Product"]); if (Param.status == "Return") { FmReturnSell frm = new FmReturnSell(); var result = frm.ShowDialog(this); if (result == System.Windows.Forms.DialogResult.OK) { } } } catch (Exception ex) { Console.WriteLine(ex.ToString()); } } }
private void FmProductQty_Load(object sender, EventArgs e) { if (Param.status == "Return") { FmReturnSell frm = new FmReturnSell(); var result = frm.ShowDialog(this); if (result == System.Windows.Forms.DialogResult.OK) { } } }