Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/15/08 01:26:25 (14 years ago)
Author:
gkronber
Message:

worked on #419 (Refactor CEDMA plugins)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CEDMA-Refactoring-Ticket419/HeuristicLab.CEDMA.Core/DataSetListView.cs

    r957 r989  
    5656      if(DataSetList == null) {
    5757        Caption = "Data Sets View";
    58         agentTreeView.Enabled = false;
     58        dataSetsTreeView.Enabled = false;
    5959      } else {
    60         agentTreeView.Enabled = true;
    61         agentTreeView.Nodes.Clear();
     60        dataSetsTreeView.Enabled = true;
     61        dataSetsTreeView.Nodes.Clear();
    6262        foreach(DataSet dataSet in DataSetList) {
    6363          TreeNode node = new TreeNode();
     
    6565          node.Tag = dataSet;
    6666          node.Nodes.Add("dummy");
    67           node.ContextMenuStrip = entryContextMenuStrip;
    68           agentTreeView.Nodes.Add(node);
     67          dataSetsTreeView.Nodes.Add(node);
    6968        }
    7069      }
     
    7372    #region Button Events
    7473    private void addButton_Click(object sender, EventArgs e) {
    75       DataSetList.CreateDataSet();
     74      DataSet dataSet = new DataSet();
     75      DataSetList.Add(dataSet);
     76      UpdateControls();
    7677    }
    7778    #endregion
    7879
    79     private void agentTreeView_AfterSelect(object sender, TreeViewEventArgs e) {
     80    private void dataSetsTreeView_AfterSelect(object sender, TreeViewEventArgs e) {
    8081      if(detailsGroupBox.Controls.Count > 0)
    8182        detailsGroupBox.Controls[0].Dispose();
    8283      detailsGroupBox.Controls.Clear();
    8384      detailsGroupBox.Enabled = false;
    84       if(agentTreeView.SelectedNode != null) {
    85         IViewable viewable = (IViewable)agentTreeView.SelectedNode.Tag;
     85      if(dataSetsTreeView.SelectedNode != null) {
     86        IViewable viewable = (IViewable)dataSetsTreeView.SelectedNode.Tag;
    8687        Control control = (Control)viewable.CreateView();
    8788        detailsGroupBox.Controls.Add(control);
Note: See TracChangeset for help on using the changeset viewer.