예제 #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;
 }
예제 #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();
        }
예제 #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();
        }