Ejemplo n.º 1
0
 public frmBrand(frmBrandList flist, bool btnEnablevalue)
 {
     InitializeComponent();
     cn                     = new SqlConnection(dbcon.MyConnection());
     this.frmlist           = flist;
     this.btnSave.Enabled   = btnEnablevalue;
     this.btnUpdate.Enabled = !btnEnablevalue;
 }
Ejemplo n.º 2
0
        private void btnbrand_Click(object sender, EventArgs e)
        {
            frmBrandList frmBrand = new frmBrandList();

            frmBrand.TopLevel = false;
            MainPanel.Controls.Add(frmBrand);
            frmBrand.BringToFront();
            frmBrand.Show();
        }
Ejemplo n.º 3
0
        private void btnbrand_Click(object sender, EventArgs e)
        {
            btnbrand.Enabled = false;
            ReferenceFrm.Dispose();
            ReferenceBtn.Enabled = true;
            frmBrandList frmBrand = new frmBrandList();

            ReferenceFrm      = frmBrand;
            ReferenceBtn      = btnbrand;
            frmBrand.TopLevel = false;
            MainPanel.Controls.Add(frmBrand);
            frmBrand.BringToFront();
            frmBrand.Show();
        }