private void buttonItem_SetCommand_Click(object sender, EventArgs e) { pageSlider1.SelectedPageIndex = 1; if (sc == null) { sc = new CommandControl.SetCommand(styleManager1.MetroColorParameters.BaseColor, styleManager1.MetroColorParameters.CanvasColor, pageSlider1); sc.Dock = DockStyle.Fill; pageSliderPage2.Controls.Add(sc); } }
private void buttonItem_SetSystem_Click(object sender, EventArgs e) { pageSliderPage2.Controls.Clear(); sc = null; pageSlider1.SelectedPageIndex = 2; pageSliderPage3.Controls.Clear(); SetControl.SetSystemControl ssc = new SetControl.SetSystemControl(); //src.Location = new Point((pageSliderPage3.Width - src.Width) / 2, (pageSliderPage3.Height - src.Height) / 2); ssc.Dock = DockStyle.Fill; pageSliderPage3.Controls.Add(ssc); }