Exemplo n.º 1
0
        private void btnProduct_Click(object sender, EventArgs e)
        {
            frmProductList frmProduct = new frmProductList();

            frmProduct.TopLevel = false;
            MainPanel.Controls.Add(frmProduct);
            frmProduct.BringToFront();
            frmProduct.LoadProducts();
            //frmProduct.loadRecords();
            frmProduct.Show();
        }
Exemplo n.º 2
0
        private void btnProduct_Click(object sender, EventArgs e)
        {
            ReferenceBtn.Enabled = true;
            ReferenceFrm.Dispose();
            btnProduct.Enabled = false;
            frmProductList frmProduct = new frmProductList();

            ReferenceFrm        = frmProduct;
            ReferenceBtn        = btnProduct;
            frmProduct.TopLevel = false;
            MainPanel.Controls.Add(frmProduct);
            frmProduct.BringToFront();
            frmProduct.LoadProducts();
            //frmProduct.loadRecords();
            frmProduct.Show();
        }
Exemplo n.º 3
0
 public frmProduct(frmProductList frm)
 {
     InitializeComponent();
     cn    = new SqlConnection(dbcon.MyConnection());
     plist = frm;
 }
Exemplo n.º 4
0
 public frmAllStockDiscount(frmProductList frm)
 {
     InitializeComponent();
     cn = new SqlConnection(dbcon.MyConnection());
     f  = frm;
 }