Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10554


Ignore:
Timestamp:
03/05/14 17:31:24 (11 years ago)
Author:
pfleck
Message:
  • removed resx reference
  • improved variable values copying
Location:
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingData.cs

    r10550 r10554  
    103103      var copy = new Dictionary<int, IList>(variableValues);
    104104      for (int i = 0; i < original.Count; i++) {
    105         if (variableValues[i] is IList<double>) {
    106           copy[i] = new List<double>((IList<double>)variableValues[i]);
    107         } else if (variableValues[i] is IList<DateTime>) {
    108           copy[i] = new List<DateTime>((IList<DateTime>)variableValues[i]);
    109         } else if (variableValues[i] is IList<string>) {
    110           copy[i] = new List<string>((IList<string>)variableValues[i]);
    111         } else {
    112           throw new NotImplementedException("The Type is not Supported");
    113         }
     105        variableValues[i] = (IList)Activator.CreateInstance(original[i].GetType(), original[i]);
    114106      }
    115107      return copy;
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Views/DataPreprocessingView.designer.cs

    r10550 r10554  
    8282      // undoButton
    8383      //
    84       this.undoButton.Image = ((System.Drawing.Image)(resources.GetObject("undoButton.Image")));
     84      this.undoButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Undo;
    8585      this.undoButton.Location = new System.Drawing.Point(72, 14);
    8686      this.undoButton.Name = "undoButton";
     
    9393      // applyInNewTabButton
    9494      //
    95       this.applyInNewTabButton.Image = ((System.Drawing.Image)(resources.GetObject("applyInNewTabButton.Image")));
     95      this.applyInNewTabButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Play;
    9696      this.applyInNewTabButton.Location = new System.Drawing.Point(42, 14);
    9797      this.applyInNewTabButton.Name = "applyInNewTabButton";
     
    104104      // exportProblemButton
    105105      //
    106       this.exportProblemButton.Image = ((System.Drawing.Image)(resources.GetObject("exportProblemButton.Image")));
     106      this.exportProblemButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Save;
    107107      this.exportProblemButton.Location = new System.Drawing.Point(12, 14);
    108108      this.exportProblemButton.Name = "exportProblemButton";
     
    115115      // contentListView
    116116      //
    117       this.contentListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
    118             | System.Windows.Forms.AnchorStyles.Left) 
     117      this.contentListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     118            | System.Windows.Forms.AnchorStyles.Left)
    119119            | System.Windows.Forms.AnchorStyles.Right)));
    120120      this.contentListView.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     
    130130      // viewHost
    131131      //
    132       this.viewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
    133             | System.Windows.Forms.AnchorStyles.Left) 
     132      this.viewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     133            | System.Windows.Forms.AnchorStyles.Left)
    134134            | System.Windows.Forms.AnchorStyles.Right)));
    135135      this.viewHost.Caption = "View";
Note: See TracChangeset for help on using the changeset viewer.