private void btnPurchaseEntry_Click(object sender, EventArgs e) { SalesMaster pm = new SalesMaster(0); pm.ShowDialog(); dataGridBind(); }
private void dgSalesDetails_DoubleClick(object sender, EventArgs e) { try { if (dgSalesDetails.CurrentRow.Index != -1 && dgSalesDetails.CurrentRow.Cells[1].Value != null) { var lID = Convert.ToInt32(dgSalesDetails.CurrentRow.Cells[0].Value); SalesMaster acc = new SalesMaster(lID); acc.ShowDialog(); dataGridBind(); } } catch (Exception x) { MessageBox.Show(x.ToString()); } }
private void dgSalesDetails_DoubleClick(object sender, EventArgs e) { try { if (dgSalesDetails.CurrentRow.Index != -1 && dgSalesDetails.CurrentRow.Cells[1].Value != null) { var lID = Convert.ToInt32(dgSalesDetails.CurrentRow.Cells[0].Value); SalesMaster acc = new SalesMaster(lID); acc.ShowDialog(); dataGridBind(); } } catch (Exception x) { MessageBox.Show("Something went wrong. Contact your system administrator"); } }