Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6664


Ignore:
Timestamp:
08/17/11 13:49:54 (13 years ago)
Author:
epitzer
Message:

Include RunCollection modification into RunCollection View (#1622)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionView.cs

    r6527 r6664  
    9898        }
    9999      }
     100      var modifierMenuItem = new ToolStripMenuItem();
     101      modifierMenuItem.Text = "Modify RunCollection";
     102      modifierMenuItem.Click += ModifierMenuItem_OnClick;
     103      analyzeRunsToolStripDropDownButton.DropDownItems.Add(modifierMenuItem);
    100104    }
    101105
     
    336340      }
    337341    }
     342    private void ModifierMenuItem_OnClick(object sender, EventArgs args) {
     343      var modifier = new RunCollectionModificationEvaluator();
     344      modifier.RunCollection.AddRange(Content.Select(r => (IRun)r.Clone()));
     345      MainFormManager.MainForm.ShowContent(modifier);
     346    }
    338347    private void removeButton_Click(object sender, EventArgs e) {
    339348      if (itemsListView.SelectedItems.Count > 0) {
Note: See TracChangeset for help on using the changeset viewer.