public frm_Sale(Boolean pblnCanWrite) { InitializeComponent(); tsi_save.Enabled = pblnCanWrite; _sale = new Sale(); dgv_saleItems.DataSource = _sale.getSaleLinesTable(); intComboBox(); }
public frm_Sale(long pLongID, Boolean pblnCanWrite) { InitializeComponent(); tsi_save.Enabled = pblnCanWrite; _sale = new Sale(pLongID, false); intComboBox(); displayRecord(); }
private void vts_Sale_Find_Click(object sender, EventArgs e) { if (!isDenied("frm_Sale")) { Sale _sale = new Sale("Search"); frm_Search frmsearch = new frm_Search(_sale.saleDataset, "Sale", canWrite("frm_Sale")); frmsearch.MdiParent = this; frmsearch.Show(); } else MessageBox.Show("Access denied. Contact network administrator to gain access"); }