Esempio n. 1
0
 private void editButton_Click(object sender, EventArgs e)
 {
     if (comboBox.SelectedIndex == 0) {
         using (ScriptEditor editor = new ScriptEditor(project)) {
             editor.ShowDialog(this);
             Populate();
         }
     }
     else {
         using (ScriptEditor editor = new ScriptEditor(scripts.Find(sc => sc.Name == (string)comboBox.SelectedItem), project)) {
             editor.ShowDialog(this);
             Populate();
         }
     }
 }
Esempio n. 2
0
 private void scriptsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using(ScriptEditor form = new ScriptEditor(currentProject)) {
         form.ShowDialog(this);
     }
 }