예제 #1
0
 private void repairProgram()
 {
     try
     {
         FormPrgConfig configureProgram = new FormPrgConfig(currentTest.ProgramInUse.ProgramName);
         this.Controls.Add(configureProgram);
     }
     catch (Exception ex) {
         throw new Exception(LocRM.GetString("notEdit", currentCulture) + ex.Message);
     }
 }
예제 #2
0
 private void repairProgram()
 {
     try
     {
         FormPrgConfig configureProgram = new FormPrgConfig(currentTest.ProgramInUse.ProgramName);
         this.Controls.Add(configureProgram);
     }
     catch (Exception ex) {
         throw new Exception("Edição não pode ser feita " + ex.Message);
     }
 }
예제 #3
0
        private void stroopToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FormDefine   defineProgram;
            DialogResult result;
            string       editProgramName = "error";

            try
            {
                defineProgram = new FormDefine(LocRM.GetString("editProgram", currentCulture), Global.stroopTestFilesPath + Global.programFolderName, "prg", "program", false, false);
                result        = defineProgram.ShowDialog();
                if (result == DialogResult.OK)
                {
                    editProgramName = defineProgram.ReturnValue;
                    FormPrgConfig configureProgram = new FormPrgConfig(editProgramName);
                    this.Controls.Add(configureProgram);
                }
            }
            catch (Exception ex) { MessageBox.Show(ex.Message); }
        }
예제 #4
0
 private void checkSave()
 {
     if (Global.GlobalFormMain.contentPanel.Controls[0] is FormTRConfig)
     {
         DialogResult dialogResult = MessageBox.Show(LocRM.GetString("savePending", currentCulture), LocRM.GetString("savePendingTitle", currentCulture), MessageBoxButtons.YesNo);
         if (dialogResult == DialogResult.Yes)
         {
             FormTRConfig toSave = (FormTRConfig)(Global.GlobalFormMain.contentPanel.Controls[0]);
             toSave.save();
         }
         else
         {
             /*do nothing*/
         }
     }
     else if (Global.GlobalFormMain.contentPanel.Controls[0] is ExperimentConfig)
     {
         DialogResult dialogResult = MessageBox.Show(LocRM.GetString("savePending", currentCulture), LocRM.GetString("savePendingTitle", currentCulture), MessageBoxButtons.YesNo);
         if (dialogResult == DialogResult.Yes)
         {
             ExperimentConfig toSave = (ExperimentConfig)(Global.GlobalFormMain.contentPanel.Controls[0]);
             toSave.save();
         }
         else
         {
             /*do nothing*/
         }
     }
     else if (Global.GlobalFormMain.contentPanel.Controls[0] is FormPrgConfig)
     {
         DialogResult dialogResult = MessageBox.Show(LocRM.GetString("savePending", currentCulture), LocRM.GetString("savePendingTitle", currentCulture), MessageBoxButtons.YesNo);
         if (dialogResult == DialogResult.Yes)
         {
             FormPrgConfig toSave = (FormPrgConfig)(Global.GlobalFormMain.contentPanel.Controls[0]);
             toSave.save();
         }
         else
         {
             /*do nothing*/
         }
     }
 }
예제 #5
0
        private void stroopToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormPrgConfig configureProgram = new FormPrgConfig("false");

            this.contentPanel.Controls.Add(configureProgram);
        }
예제 #6
0
        private void newProgram()
        {
            FormPrgConfig configureProgram = new FormPrgConfig("false");

            this.Controls.Add(configureProgram);
        }