Пример #1
0
 private void buttonEditProgram_Click(object sender, EventArgs e)
 {
     using (ProgramForm programForm = new ProgramForm(_Program)) {
         if (programForm.ShowDialog() == DialogResult.OK)
         {
             _Program = _Program;
         }
     }
 }
Пример #2
0
        private void buttonNewProgram_Click(object sender, EventArgs e)
        {
            Program program = new Program("New Program");

            using (ProgramForm programForm = new ProgramForm(program)) {
                if (programForm.ShowDialog() == DialogResult.OK)
                {
                    _Program = program;
                }
            }
        }
Пример #3
0
 private void buttonNewProgram_Click(object sender, EventArgs e)
 {
     Program program = new Program("New Program");
     using (ProgramForm programForm = new ProgramForm(program)) {
         if (programForm.ShowDialog() == DialogResult.OK) {
             _Program = program;
         }
     }
 }
Пример #4
0
 private void buttonEditProgram_Click(object sender, EventArgs e)
 {
     using (ProgramForm programForm = new ProgramForm(_Program)) {
         if (programForm.ShowDialog() == DialogResult.OK) {
             _Program = _Program;
         }
     }
 }