public void LoadNewProjectScene(bool modal)
 {
     Popup p = new Popup(this);
     NewProjectScene scene = new NewProjectScene(this, p, true);
     if (modal)
         p.Show(scene.Component);
     else
         _panel.SetMiddle(scene.Component);
 }
 void view2_Click(object sender, EventArgs e)
 {
     Popup popup = new Popup(_mainForm);
     popup.Controls.Add(new ProjectScene(_mainForm).Component);
     popup.Show();
 }
 void view1_Click(object sender, EventArgs e)
 {
     Popup popup = new Popup(_mainForm);
     popup.Controls.Add(new EditMotorsStages(_mainForm).Component);
     popup.Show();
 }