Exemple #1
0
 private void editMenuItem_Click(object sender, EventArgs e)
 {
     if (scriptListView.SelectedItems.Count > 0)
     {
         EditScript scriptEditor = new EditScript(scriptListView.SelectedItems[0]);
         if (scriptEditor.ShowDialog() == DialogResult.Yes)
         {
             ResetAssociations();
         }
     }
 }
Exemple #2
0
        private void newButton_Click(object sender, EventArgs e)
        {
            ListViewItem item = new ListViewItem("");

            item.SubItems.Add("");
            item.SubItems.Add("");
            EditScript scriptEditor = new EditScript(item);

            if (scriptEditor.ShowDialog() == DialogResult.Yes)
            {
                scriptListView.Items.Add(item);
                ResetAssociations();
            }
        }
Exemple #3
0
 private void newButton_Click(object sender, EventArgs e)
 {
     ListViewItem item = new ListViewItem("");
     item.SubItems.Add("");
     item.SubItems.Add("");
     EditScript scriptEditor = new EditScript(item);
     if (scriptEditor.ShowDialog() == DialogResult.Yes) {
         scriptListView.Items.Add(item);
         ResetAssociations();
     }
 }
Exemple #4
0
 private void editMenuItem_Click(object sender, EventArgs e)
 {
     if (scriptListView.SelectedItems.Count > 0) {
         EditScript scriptEditor = new EditScript(scriptListView.SelectedItems[0]);
         if (scriptEditor.ShowDialog() == DialogResult.Yes) {
             ResetAssociations();
         }
     }
 }