Example #1
0
        private void btnCatalog_Click(object sender, EventArgs e)
        {
            //Form frmCatalog = new frmCatalog();
            //frmCatalog.Show();
            uControl.ucCatalog ucCatalog = new uControl.ucCatalog();
            ucCatalog.Dock = DockStyle.Fill;

            panelMain.Controls.Clear();
            panelMain.Controls.Add(ucCatalog);
        }
Example #2
0
        private void lblX_Click(object sender, EventArgs e)
        {
            //((Form)this.TopLevelControl).Close();
            ucCatalog ucCatalog = new ucCatalog();

            this.Hide();
            uControl.ucDashboard ucDashboard = new uControl.ucDashboard();
            ucDashboard.Dock = DockStyle.Fill;
            frmDashboard frmDashboard = new frmDashboard();

            frmDashboard.Show();
        }