Exemplo n.º 1
0
        private void editProgramToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormDefine   defineProgram;
            DialogResult result;
            string       editProgramName = "error";

            try
            {
                defineProgram = new FormDefine("Editar Programa: ", testFilesPath + "/prg/", "prg", "program", false);
                result        = defineProgram.ShowDialog();
                if (result == DialogResult.OK)
                {
                    editProgramName = defineProgram.ReturnValue;
                    FormPrgConfig configureProgram = new FormPrgConfig(testFilesPath, editProgramName);
                    if (!configureProgram.IsDisposed)
                    {
                        configureProgram.ShowDialog();
                    }
                    else
                    {
                        configureProgram.Close();
                    }
                }
            }
            catch (Exception ex) { MessageBox.Show(ex.Message); }
        }
Exemplo n.º 2
0
        private void newProgram()
        {
            FormPrgConfig configureProgram = new FormPrgConfig(testFilesPath, "false");

            try { configureProgram.ShowDialog(); }
            catch (Exception ex) { MessageBox.Show(ex.Message); }
        }
Exemplo n.º 3
0
        private void newProgramToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormPrgConfig configureProgram = new FormPrgConfig(testFilesPath, "false");

            try { configureProgram.ShowDialog(); }
            catch (Exception ex) { MessageBox.Show(ex.Message); }
        }
Exemplo n.º 4
0
        private void repairProgram(StroopProgram program, string path)
        {
            FormPrgConfig configureProgram;

            try
            {
                configureProgram = new FormPrgConfig(path, "/" + programInUse.ProgramName);
                configureProgram.ShowDialog();
            }
            catch (Exception ex) { throw new Exception("Edição não pode ser feita " + ex.Message); }
        }