Changeset 8765


Ignore:
Timestamp:
10/09/12 13:56:41 (7 years ago)
Author:
mkommend
Message:

#1081: Fixed minor bugs in time series prognosis views.

Location:
branches/HeuristicLab.TimeSeries
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4/SymbolicTimeSeriesPrognosisSolutionView.Designer.cs

    r6807 r8765  
    8989      this.detailsGroupBox.ResumeLayout(false);
    9090      this.ResumeLayout(false);
    91 
    9291    }
    9392
  • branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/DataAnalysisSolutionView.cs

    r8430 r8765  
    147147    }
    148148
     149    protected override void RebuildImageList() {
     150      itemsListView.SmallImageList.Images.Clear();
     151      foreach (ListViewItem listViewItem in itemsListView.Items) {
     152        IResult result = listViewItem.Tag as IResult;
     153        Type viewType = listViewItem.Tag as Type;
     154        if (result != null) itemsListView.SmallImageList.Images.Add(result.ItemImage);
     155        else if (viewType != null && typeof(IDataAnalysisSolutionEvaluationView).IsAssignableFrom(viewType))
     156          itemsListView.SmallImageList.Images.Add(((IDataAnalysisSolutionEvaluationView)Activator.CreateInstance(viewType)).ViewImage);
     157        else itemsListView.SmallImageList.Images.Add(HeuristicLab.Common.Resources.VSImageLibrary.Nothing);
     158
     159        listViewItem.ImageIndex = itemsListView.SmallImageList.Images.Count - 1;
     160      }
     161    }
     162
    149163    #region drag and drop
    150164    protected override void itemsListView_DragEnter(object sender, DragEventArgs e) {
  • branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/TimeSeriesPrognosisSolutionView.Designer.cs

    r8490 r8765  
    5353      this.SuspendLayout();
    5454      //
    55       // splitContainer
    56       //
    57       //
    5855      // itemsGroupBox
    5956      //
    60       this.itemsGroupBox.Text = "Regression Solution";
    61       //
    62       // addButton
    63       //
    64       this.toolTip.SetToolTip(this.addButton, "Add");
    65       //
    66       // removeButton
    67       //
    68       this.toolTip.SetToolTip(this.removeButton, "Remove");
    69       //
    70       // RegressionSolutionView
    71       //
     57      this.itemsGroupBox.Text = "Time-series Prognosis Solution";
    7258      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    7359      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
Note: See TracChangeset for help on using the changeset viewer.