Пример #1
0
 private void Form_Main_Load(object sender, EventArgs e)
 {
     setadmin();
     User_Control.UC_Dashboard um = new User_Control.UC_Dashboard();
     mainpanel.Controls.Clear();
     mainpanel.Controls.Add(um);
 }
Пример #2
0
 private void backToDashboardToolStripMenuItem_Click(object sender, EventArgs e)
 {
     User_Control.UC_Dashboard uc = new User_Control.UC_Dashboard();
     mainpanel.Controls.Clear();
     mainpanel.Controls.Add(uc);
     removecolors();
     backToDashboardToolStripMenuItem.BackColor = System.Drawing.Color.Cyan;
 }