コード例 #1
0
        private void btnWizard_Click(object sender, EventArgs e)
        {
            Wizard wiz = new Wizard(project);

            if (wiz.ShowDialog() == DialogResult.OK)
            {
                SettingsManagement.AddFileAsMostRecent(project.FilePath);
                OnlyWelcomeWindow = null;
                this.Close();
            }
        }
コード例 #2
0
        private void frmWelcome_FormClosed(object sender, FormClosedEventArgs e)
        {
            if (project.IsReady)
            {
                if (SettingsManagement.SaveRecentList() == false)
                {
                    MessageBox.Show("Error, Could Not Save Recent File List");
                }
            }

            SettingsManagement.WelcomeWindowAtStart = chkShowWelcomeAtStart.Checked;
            OnlyWelcomeWindow = null;
        }
コード例 #3
0
 private void WelcomeWindow_Load(object sender, EventArgs e)
 {
     OnlyWelcomeWindow = this;
 }
コード例 #4
0
 private void btnWizard_Click(object sender, EventArgs e)
 {
     Wizard wiz = new Wizard(project);
     if (wiz.ShowDialog() == DialogResult.OK)
     {
         SettingsManagement.AddFileAsMostRecent(project.FilePath);
         OnlyWelcomeWindow = null;
         this.Close();
     }
 }
コード例 #5
0
        private void frmWelcome_FormClosed(object sender, FormClosedEventArgs e)
        {
            if (project.IsReady)
            {
                if (SettingsManagement.SaveRecentList() == false)
                {
                    MessageBox.Show("Error, Could Not Save Recent File List");
                }
            }

            SettingsManagement.WelcomeWindowAtStart = chkShowWelcomeAtStart.Checked;
            OnlyWelcomeWindow = null;
        }
コード例 #6
0
ファイル: IDEWindow.cs プロジェクト: bh1rio/avr-project-ide
        private void mbtnOpenProject_Click(object sender, EventArgs e)
        {
            if (SaveProj() == false)
            {
                return;
            }

            if (HasChanged)
            {
                DialogResult res = MessageBox.Show("You have unsaved changes. Do you want to save?", "Unsaved Project", MessageBoxButtons.YesNoCancel);
                if (res == DialogResult.Yes)
                {
                    if (SaveAll() == false)
                    {
                        return;
                    }
                }
                else if (res == DialogResult.Cancel)
                {
                    return;
                }
            }

            AVRProject newProj = new AVRProject();

            WelcomeWindow newWelcome = new WelcomeWindow(newProj);
            newWelcome.ShowDialog();

            if (newProj.IsReady) // IsReady == false means that the user closed the welcome window without opening a project
            {
                HandleNewOpenProj(newProj);
            }
        }
コード例 #7
0
ファイル: IDEWindow.cs プロジェクト: bh1rio/avr-project-ide
        private void IDEWindow_Load(object sender, EventArgs e)
        {
            curOpenWind = this;

            // fill external tools
            try
            {
                this.toolsToolStripMenuItem.DropDownItems.Add(ExternalTool.GetExternalToolsRoot(this));
            }
            catch (Exception ex)
            {
                messageWin.MessageBoxModify(TextBoxChangeMode.AppendNewLine, "Error Loading External Tools:, " + ex.Message);
            }

            SettingsManagement.LoadWindowState(this);

            Program.SplashScreen.BringToFront();
            Program.SplashScreen.Activate();

            bool useSavedDockSettings = false;
            // if workspace setting exists, load it
            string workspaceName = "workspace_version_" + Properties.Resources.PanelWorkspaceVersion + ".xml";
            if (File.Exists(SettingsManagement.AppDataPath + workspaceName))
            {
                DeserializeDockContent deserDockCont = new DeserializeDockContent(GetPanelFromPersistString);
                try
                {
                    dockPanel1.LoadFromXml(SettingsManagement.AppDataPath + workspaceName, deserDockCont);
                    useSavedDockSettings = true;
                }
                catch { }
            }

            if (useSavedDockSettings)
            {
                fileTreeWin.Show(dockPanel1);
                messageWin.Show(dockPanel1);
                searchWin.Show(dockPanel1);
                serialWin.Show(dockPanel1);
                usbWin.Show(dockPanel1);
                disassemViewer.Show(dockPanel1);
                hardwareExplorerWin.Show(dockPanel1);
                #if DEBUGGERWINTEST
                debuggerWin.Show(dockPanel1);
                #endif
            }
            else
            {
                // if an xml was not loaded, do the default config
                fileTreeWin.Show(dockPanel1, DockState.DockLeft);
                messageWin.Show(dockPanel1, DockState.DockBottom);
                searchWin.Show(dockPanel1, DockState.DockBottom);
                serialWin.Show(dockPanel1, DockState.DockBottom);
                usbWin.Show(dockPanel1, DockState.DockBottom);
                disassemViewer.Show(dockPanel1, DockState.DockBottom);
                hardwareExplorerWin.Show(dockPanel1, DockState.DockRightAutoHide);
                #if DEBUGGERWINTEST
                debuggerWin.Show(dockPanel1, DockState.DockRightAutoHide);
                #endif
            }

            Program.SplashScreen.Close();

            searchWin.Activate();

            if (project.IsReady == false && SettingsManagement.WelcomeWindowAtStart)
            {
                WelcomeWindow ww = new WelcomeWindow(project);
                ww.ShowDialog();
            }

            if (project.IsReady)
            {
                HandleNewOpenProj(project);
            }
        }
コード例 #8
0
 private void WelcomeWindow_Load(object sender, EventArgs e)
 {
     OnlyWelcomeWindow = this;
 }