Пример #1
0
 public frm_Sale(Boolean pblnCanWrite)
 {
     InitializeComponent();
     tsi_save.Enabled = pblnCanWrite;
     _sale = new Sale();
     dgv_saleItems.DataSource = _sale.getSaleLinesTable();
     intComboBox();
 }
Пример #2
0
 public frm_Sale(long pLongID, Boolean pblnCanWrite)
 {
     InitializeComponent();
     tsi_save.Enabled = pblnCanWrite;
     _sale = new Sale(pLongID, false);
     intComboBox();
     displayRecord();
 }
Пример #3
0
 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");
 }