Пример #1
0
 private void previewToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (previewWindow == null || previewWindow.IsDisposed)
     {
         previewWindow         = new PreviewWindow();
         previewWindow.Visible = true;
     }
 }
Пример #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();
        }