Ejemplo n.º 1
0
 private void previewToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (previewWindow == null || previewWindow.IsDisposed)
     {
         previewWindow         = new PreviewWindow();
         previewWindow.Visible = true;
     }
 }
Ejemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();

            lua_state = LuaHelper.GetLuaState();

            projectManager = ProjectManager.GetInstance();
            projectManager.OnMotorAnalysisResultsUpdate += new EventHandler(projectManager_RequestRefreshUI);
            projectManager.loadStartupProject();

            form_motorParams           = new Form_MotorParams();
            form_motorParams.MdiParent = this;

            resultsWindow           = new ResultsWindow();
            resultsWindow.MdiParent = this;

            logwindow           = new LogWindow();
            logwindow.MdiParent = this;

            previewWindow           = new PreviewWindow();
            previewWindow.MdiParent = this;

            initMenu();
        }