Esempio n. 1
0
        private void btnbrand_Click(object sender, EventArgs e)
        {
            frmBrandList frmBrand = new frmBrandList();

            frmBrand.TopLevel = false;
            MainPanel.Controls.Add(frmBrand);
            frmBrand.BringToFront();
            frmBrand.Show();
        }
Esempio n. 2
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();
        }