Esempio n. 1
0
 public void OnStart()
 {
     MainMenuForm.Dashboard Das = new MainMenuForm.Dashboard();
     while (pnlMain.Controls.Count > 0)
         pnlMain.Controls[0].Dispose();
     Das.TopLevel = false;
     Das.Dock = DockStyle.None;
     Das.Visible = true;
     pnlMain.Visible = true;
     pnlMain.Controls.Add(Das);
 }
Esempio n. 2
0
 private void btnDashboard_Click(object sender, EventArgs e)
 {
     changeButtonLayout(0);
     MainMenuForm.Dashboard Das = new MainMenuForm.Dashboard();
     while (pnlMain.Controls.Count > 0)
         pnlMain.Controls[0].Dispose();
     Das.TopLevel = false;
     Das.Dock = DockStyle.None;
     Das.Visible = true;
     pnlMain.Visible = true;
     pnlMain.Controls.Add(Das);
 }