Exemplo n.º 1
0
        ///
        /// <summary>
        /// Creates a new project.
        /// </summary>
        private void newProject()
        {
            List <string>      lstNames      = _proInter.getProNames();
            frmProjectSettings frmNewProject = new frmProjectSettings(lstNames); //Creates and displays frmProjectSettings dialog

            if (frmNewProject.ShowDialog() == DialogResult.OK)
            {
                ProjectSettings ps = frmNewProject.getSettings(); //Fetches settings from the dialog
                _proInter.newPoject(ps);                          //Creates new project
                enableProButtons();
            }
            enableTargetButtons();
        }
Exemplo n.º 2
0
        ///
        /// <summary>
        /// Allows the user to edit the current project's settings.
        /// </summary>
        private void editProject()
        {
            if ((_strTabIndex != "") && (_proInter.checkActiveAll(_strTabIndex) == false)) //Checks it the project is currently uploading
            {
                List <string>      lstNames       = _proInter.getProNames();
                ProjectSettings    oldProSettings = _proInter.getProSettings(_strTabIndex);           //Get the current project settings
                frmProjectSettings frmNewProject  = new frmProjectSettings(lstNames, oldProSettings); //Use them to fill form

                if (frmNewProject.ShowDialog() == DialogResult.OK)
                {
                    TabPage oldTabPage = mainTabControl.SelectedTab;           //Old TabPage
                    this.mainTabControl.TabPages.Remove(oldTabPage);           //Removes old tab page from Tab Control
                    ProjectSettings newSettings = frmNewProject.getSettings(); //Fetch the new settings
                    _proInter.editProject(oldProSettings.ProjectName, newSettings);
                }
            }
            enableProButtons();
            enableTargetButtons();
        }
Exemplo n.º 3
0
        ///
        /// <summary>
        /// Creates a new project.
        /// </summary>
        private void newProject()
        {
            List<string> lstNames = _proInter.getProNames();
              frmProjectSettings frmNewProject = new frmProjectSettings(lstNames); //Creates and displays frmProjectSettings dialog

              if(frmNewProject.ShowDialog() == DialogResult.OK)
              {
            ProjectSettings ps = frmNewProject.getSettings(); //Fetches settings from the dialog
            _proInter.newPoject(ps);                          //Creates new project
            enableProButtons();
              }
              enableTargetButtons();
        }
Exemplo n.º 4
0
        ///
        /// <summary>
        /// Allows the user to edit the current project's settings.
        /// </summary>
        private void editProject()
        {
            if((_strTabIndex != "") && (_proInter.checkActiveAll(_strTabIndex) == false))   //Checks it the project is currently uploading
              {
            List<string> lstNames = _proInter.getProNames();
            ProjectSettings oldProSettings = _proInter.getProSettings(_strTabIndex);       //Get the current project settings
            frmProjectSettings frmNewProject = new frmProjectSettings(lstNames, oldProSettings);    //Use them to fill form

            if(frmNewProject.ShowDialog() == DialogResult.OK)
            {
              TabPage oldTabPage = mainTabControl.SelectedTab;                    //Old TabPage
              this.mainTabControl.TabPages.Remove(oldTabPage);                    //Removes old tab page from Tab Control
              ProjectSettings newSettings = frmNewProject.getSettings();          //Fetch the new settings
              _proInter.editProject(oldProSettings.ProjectName, newSettings);
            }
              }
              enableProButtons();
              enableTargetButtons();
        }