예제 #1
0
        public frmProjIDE(AVRProject myProject, EnviroSettings mySettings)
        {
            this.myProject  = myProject;
            this.mySettings = mySettings;

            InitializeComponent();

            myBuilder           = new ProjectBuilder(myProject, txtOutputMsg, listErrWarn);
            myBuilder.DoneWork += new ProjectBuilder.EventHandler(myBuilder_DoneWork);

            myBurner = new ProjectBurner(myProject);

            serialPortControlPanel = new SerialPortPanel("com0", 9600);
            tabSerialPort.Controls.Add(serialPortControlPanel);
            serialPortControlPanel.SerialPortException += new SerialPortPanel.SerialPortErrorHandler(serialPortControlPanel_SerialPortException);

            myEditorTabsPanel = new EditorTabsPanel(myProject, mySettings);
            splitFileTreeEditorTabs.Panel2.Controls.Add(myEditorTabsPanel);

            try
            {
                helpToolStripMenuItem.DropDownItems.Add(MenuWebLink.GetMenuLinkRoot("Resources", "helplinks.xml"));
            }
            catch (Exception ex)
            {
                txtOutputMsg.Text += "Failed to Load Help->Resource Links\r\n" + ex.ToString();
            }

            FillRecentProjects();

            RefreshFileTree();
        }
        public frmProjIDE(AVRProject myProject, EnviroSettings mySettings)
        {
            this.myProject = myProject;
            this.mySettings = mySettings;

            InitializeComponent();

            myBuilder = new ProjectBuilder(myProject, txtOutputMsg, listErrWarn);
            myBuilder.DoneWork += new ProjectBuilder.EventHandler(myBuilder_DoneWork);

            myBurner = new ProjectBurner(myProject);

            serialPortControlPanel = new SerialPortPanel("com0", 9600);
            tabSerialPort.Controls.Add(serialPortControlPanel);
            serialPortControlPanel.SerialPortException += new SerialPortPanel.SerialPortErrorHandler(serialPortControlPanel_SerialPortException);

            myEditorTabsPanel = new EditorTabsPanel(myProject, mySettings);
            splitFileTreeEditorTabs.Panel2.Controls.Add(myEditorTabsPanel);

            try
            {
                helpToolStripMenuItem.DropDownItems.Add(MenuWebLink.GetMenuLinkRoot("Resources", "helplinks.xml"));
            }
            catch (Exception ex)
            {
                txtOutputMsg.Text += "Failed to Load Help->Resource Links\r\n" + ex.ToString();
            }

            FillRecentProjects();

            RefreshFileTree();
        }
        public frmProjConfig(AVRProject myProj, EnviroSettings mySettings)
        {
            InitializeComponent();

            this.myProj = myProj;
            this.mySettings = mySettings;

            myBurner = new ProjectBurner(myProj);

            for (int i = 0; i < dropPart.Items.Count; i++)
            {
                string str = (string)dropPart.Items[i];
                str = str.Substring(str.IndexOf('=') + 2);
                str = str.Substring(0, str.IndexOf(' '));
                dropPart.Items[i] = str.Trim();
            }

            for (int i = 0; i < dropProg.Items.Count; i++)
            {
                string str = (string)dropProg.Items[i];
                str = str.Substring(0, str.IndexOf('='));
                dropProg.Items[i] = str.Trim();
            }

            doNotAllowClose = false;

            PopulateForm();
        }
예제 #4
0
        public frmProjConfig(AVRProject myProj, EnviroSettings mySettings)
        {
            InitializeComponent();

            this.myProj     = myProj;
            this.mySettings = mySettings;

            myBurner = new ProjectBurner(myProj);

            for (int i = 0; i < dropPart.Items.Count; i++)
            {
                string str = (string)dropPart.Items[i];
                str = str.Substring(str.IndexOf('=') + 2);
                str = str.Substring(0, str.IndexOf(' '));
                dropPart.Items[i] = str.Trim();
            }

            for (int i = 0; i < dropProg.Items.Count; i++)
            {
                string str = (string)dropProg.Items[i];
                str = str.Substring(0, str.IndexOf('='));
                dropProg.Items[i] = str.Trim();
            }

            doNotAllowClose = false;

            PopulateForm();
        }
        public frmWelcome(EnviroSettings mySettings, AVRProject myProject)
        {
            InitializeComponent();

            this.mySettings = mySettings;
            this.mySettings.FillListBox(listRecentFiles);

            this.myProject = myProject;
        }
예제 #6
0
        public frmWelcome(EnviroSettings mySettings, AVRProject myProject)
        {
            InitializeComponent();

            this.mySettings = mySettings;
            this.mySettings.FillListBox(listRecentFiles);

            this.myProject = myProject;
        }
        public EditorTabsPanel(AVRProject myProject, EnviroSettings mySettings)
        {
            this.myProject = myProject;
            this.mySettings = mySettings;

            InitializeComponent();

            this.BackColor = SystemColors.Control;
            this.Dock = DockStyle.Fill;
        }
예제 #8
0
        public EditorTabsPanel(AVRProject myProject, EnviroSettings mySettings)
        {
            this.myProject  = myProject;
            this.mySettings = mySettings;

            InitializeComponent();

            this.BackColor = SystemColors.Control;
            this.Dock      = DockStyle.Fill;
        }
예제 #9
0
        public static void Main()
        {
            EnviroSettings mySettings = new EnviroSettings();
            AVRProject myProject = new AVRProject();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new frmWelcome(mySettings, myProject));
            if (myProject.IsReady)
                Application.Run(new frmProjIDE(myProject, mySettings));
        }
예제 #10
0
        public static void Main()
        {
            EnviroSettings mySettings = new EnviroSettings();
            AVRProject     myProject  = new AVRProject();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new frmWelcome(mySettings, myProject));
            if (myProject.IsReady)
            {
                Application.Run(new frmProjIDE(myProject, mySettings));
            }
        }