private void frmImportProducts_Load(object sender, EventArgs e)
        {
            //set list employtee
            cbEmployee.Properties.DataSource    = ec.getTable();
            cbEmployee.Properties.DisplayMember = "Employee Name";
            cbEmployee.Properties.ValueMember   = "Employee ID";
            //
            //Set list product
            foreach (Products p in pc.getList())
            {
                cbProductID.Properties.Items.Add(p.productID);
            }
            foreach (PurchaseBill bill in pd.getList())
            {
                txPurchaseID.Properties.Items.Add(bill.purchaseID);
            }
            gridControl1.DataSource = null;

            txPrice.Text    = txTotal.Text = "0";
            btPrint.Enabled = false;

            MainView.AddNewRow();
        }
Example #2
0
 private void sbtNew_Click(object sender, EventArgs e)
 {
     MainView.AddNewRow();
 }