Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/23/09 11:08:34 (15 years ago)
Author:
swagner
Message:

Implemented first draft of MainForm support in HeuristicLab.Core/HeuristicLab.Core.Views and all other depending plugins (#770)

Location:
trunk/sources/HeuristicLab.Data/3.3
Files:
39 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data/3.3/ArrayDataBaseView.cs

    r1529 r2520  
    2828using System.Windows.Forms;
    2929using HeuristicLab.Core;
     30using HeuristicLab.Core.Views;
    3031
    3132namespace HeuristicLab.Data {
  • trunk/sources/HeuristicLab.Data/3.3/BoolArrayData.cs

    r1853 r2520  
    5757      Data = data;
    5858    }
    59 
    60     /// <summary>
    61     /// Creates a new instance of the <see cref="BoolArrayDataView"/> class.
    62     /// </summary>
    63     /// <returns>The created instance of the <see cref="BoolArrayDataView"/>.</returns>
    64     public override IView CreateView() {
    65       return new BoolArrayDataView(this);
    66     }
    6759  }
    6860}
  • trunk/sources/HeuristicLab.Data/3.3/BoolArrayDataView.cs

    r1529 r2520  
    2727using System.Text;
    2828using System.Windows.Forms;
     29using HeuristicLab.MainForm;
    2930
    3031namespace HeuristicLab.Data {
     
    3334  /// symbolizing an array of boolean values.
    3435  /// </summary>
     36  [Content(typeof(BoolArrayData), true)]
    3537  public partial class BoolArrayDataView : ArrayDataBaseView {
    3638    /// <summary>
  • trunk/sources/HeuristicLab.Data/3.3/BoolData.cs

    r1853 r2520  
    5656      Data = data;
    5757    }
    58     /// <summary>
    59     /// Creates a new instance of the <see cref="BoolDataView"/> class.
    60     /// </summary>
    61     /// <returns>The created instance of the <see cref="BoolDataView"/>.</returns>
    62     public override IView CreateView() {
    63       return new BoolDataView(this);
    64     }
    6558
    6659    /// <summary>
  • trunk/sources/HeuristicLab.Data/3.3/BoolDataView.cs

    r1529 r2520  
    2828using System.Windows.Forms;
    2929using HeuristicLab.Core;
     30using HeuristicLab.Core.Views;
     31using HeuristicLab.MainForm;
    3032
    3133namespace HeuristicLab.Data {
     
    3335  /// The visual representation of the class <see cref="BoolData"/>, symbolizing a boolean value.
    3436  /// </summary>
     37  [Content(typeof(BoolData), true)]
    3538  public partial class BoolDataView : ViewBase {
    3639    /// <summary>
  • trunk/sources/HeuristicLab.Data/3.3/BoolMatrixData.cs

    r1853 r2520  
    6060
    6161    /// <summary>
    62     /// Creates a new instance of the <see cref="BoolMatrixDataView"/> class.
    63     /// </summary>
    64     /// <returns>The created instance of the <see cref="BoolMatrixDataView"/>.</returns>
    65     public override IView CreateView() {
    66       return new BoolMatrixDataView(this);
    67     }
    68 
    69     /// <summary>
    7062    /// The string representation of the matrix.
    7163    /// </summary>
  • trunk/sources/HeuristicLab.Data/3.3/BoolMatrixDataView.cs

    r1529 r2520  
    2727using System.Text;
    2828using System.Windows.Forms;
     29using HeuristicLab.MainForm;
    2930
    3031namespace HeuristicLab.Data {
     
    3334  /// matrix of boolean values.
    3435  /// </summary>
     36  [Content(typeof(BoolMatrixData), true)]
    3537  public partial class BoolMatrixDataView : MatrixDataBaseView {
    3638    /// <summary>
  • trunk/sources/HeuristicLab.Data/3.3/ConstrainedDoubleData.cs

    r1853 r2520  
    7070
    7171    /// <summary>
    72     /// Creates a new instance of <see cref="ConstrainedDoubleDataView"/>.
    73     /// </summary>
    74     /// <returns>The created instance as <see cref="ConstrainedDoubleDataView"/>.</returns>
    75     public override IView CreateView() {
    76       return new ConstrainedDoubleDataView(this);
    77     }
    78 
    79     /// <summary>
    8072    /// Clones the current instance.
    8173    /// </summary>
  • trunk/sources/HeuristicLab.Data/3.3/ConstrainedDoubleDataView.Designer.cs

    r1529 r2520  
    4646    private void InitializeComponent() {
    4747      this.dataTextBox = new System.Windows.Forms.TextBox();
    48       this.constrainedDataBaseView = new HeuristicLab.Core.ConstrainedItemBaseView();
     48      this.constrainedDataBaseView = new HeuristicLab.Core.Views.ConstrainedItemBaseView();
    4949      this.SuspendLayout();
    5050      //
     
    8787
    8888    private System.Windows.Forms.TextBox dataTextBox;
    89     private HeuristicLab.Core.ConstrainedItemBaseView constrainedDataBaseView;
     89    private HeuristicLab.Core.Views.ConstrainedItemBaseView constrainedDataBaseView;
    9090  }
    9191}
  • trunk/sources/HeuristicLab.Data/3.3/ConstrainedDoubleDataView.cs

    r1529 r2520  
    2828using System.Windows.Forms;
    2929using HeuristicLab.Core;
     30using HeuristicLab.Core.Views;
     31using HeuristicLab.MainForm;
    3032
    3133namespace HeuristicLab.Data {
     
    3436  /// symbolizing a double value being restricted to some constraints.
    3537  /// </summary>
     38  [Content(typeof(ConstrainedDoubleData), true)]
    3639  public partial class ConstrainedDoubleDataView : ViewBase {
    3740    /// <summary>
     
    104107        ICollection<IConstraint> violatedConstraints;
    105108        if (!ConstrainedDoubleData.TrySetData(value, out violatedConstraints)) {
    106           if (Auxiliary.ShowIgnoreConstraintViolationMessageBox(violatedConstraints) == DialogResult.Yes)
     109          if (HeuristicLab.Core.Views.Auxiliary.ShowIgnoreConstraintViolationMessageBox(violatedConstraints) == DialogResult.Yes)
    107110            ConstrainedDoubleData.Data = value;
    108111          else
  • trunk/sources/HeuristicLab.Data/3.3/ConstrainedIntData.cs

    r1853 r2520  
    7070
    7171    /// <summary>
    72     /// Creates a new instance of <see cref="ConstrainedIntDataView"/>.
    73     /// </summary>
    74     /// <returns>The created instance as <see cref="ConstrainedIntDataView"/>.</returns>
    75     public override IView CreateView() {
    76       return new ConstrainedIntDataView(this);
    77     }
    78 
    79     /// <summary>
    8072    /// Clones the current instance.
    8173    /// </summary>
  • trunk/sources/HeuristicLab.Data/3.3/ConstrainedIntDataView.Designer.cs

    r1529 r2520  
    4646    private void InitializeComponent() {
    4747      this.dataTextBox = new System.Windows.Forms.TextBox();
    48       this.constrainedDataBaseView = new HeuristicLab.Core.ConstrainedItemBaseView();
     48      this.constrainedDataBaseView = new HeuristicLab.Core.Views.ConstrainedItemBaseView();
    4949      this.SuspendLayout();
    5050      //
     
    8787
    8888    private System.Windows.Forms.TextBox dataTextBox;
    89     private HeuristicLab.Core.ConstrainedItemBaseView constrainedDataBaseView;
     89    private HeuristicLab.Core.Views.ConstrainedItemBaseView constrainedDataBaseView;
    9090  }
    9191}
  • trunk/sources/HeuristicLab.Data/3.3/ConstrainedIntDataView.cs

    r1529 r2520  
    2828using System.Windows.Forms;
    2929using HeuristicLab.Core;
     30using HeuristicLab.Core.Views;
     31using HeuristicLab.MainForm;
    3032
    3133namespace HeuristicLab.Data {
     
    3436  /// symbolizing an int value with some constraints.
    3537  /// </summary>
     38  [Content(typeof(ConstrainedIntData), true)]
    3639  public partial class ConstrainedIntDataView : ViewBase {
    3740    /// <summary>
     
    104107        ICollection<IConstraint> violatedConstraints;
    105108        if (!ConstrainedIntData.TrySetData(value, out violatedConstraints)) {
    106           if (Auxiliary.ShowIgnoreConstraintViolationMessageBox(violatedConstraints) == DialogResult.Yes)
     109          if (HeuristicLab.Core.Views.Auxiliary.ShowIgnoreConstraintViolationMessageBox(violatedConstraints) == DialogResult.Yes)
    107110            ConstrainedIntData.Data = value;
    108111          else
  • trunk/sources/HeuristicLab.Data/3.3/ConstrainedItemList.cs

    r2474 r2520  
    5959
    6060    /// <summary>
    61     /// Creates a new instance of <see cref="ConstrainedItemListView"/>.
    62     /// </summary>
    63     /// <returns>The created instance as <see cref="ConstrainedItemListView"/>.</returns>
    64     public override IView CreateView() {
    65       return new ConstrainedItemListView(this);
    66     }
    67     /// <summary>
    6861    /// Clones the current instance.
    6962    /// </summary>
  • trunk/sources/HeuristicLab.Data/3.3/ConstrainedItemListView.Designer.cs

    r1529 r2520  
    5454      this.itemsTabPage = new System.Windows.Forms.TabPage();
    5555      this.constraintsTabPage = new System.Windows.Forms.TabPage();
    56       this.constraintsConstrainedItemBaseView = new HeuristicLab.Core.ConstrainedItemBaseView();
     56      this.constraintsConstrainedItemBaseView = new HeuristicLab.Core.Views.ConstrainedItemBaseView();
    5757      this.itemsSplitContainer.Panel1.SuspendLayout();
    5858      this.itemsSplitContainer.Panel2.SuspendLayout();
     
    213213    private System.Windows.Forms.GroupBox itemsGroupBox;
    214214    private System.Windows.Forms.GroupBox detailsGroupBox;
    215     private HeuristicLab.Core.ConstrainedItemBaseView constraintsConstrainedItemBaseView;
     215    private HeuristicLab.Core.Views.ConstrainedItemBaseView constraintsConstrainedItemBaseView;
    216216    private System.Windows.Forms.ListView itemsListView;
    217217  }
  • trunk/sources/HeuristicLab.Data/3.3/ConstrainedItemListView.cs

    r2474 r2520  
    2828using System.Windows.Forms;
    2929using HeuristicLab.Core;
     30using HeuristicLab.Core.Views;
    3031using HeuristicLab.Common;
     32using HeuristicLab.MainForm;
    3133
    3234namespace HeuristicLab.Data {
     
    3436  /// The visual representation of the class <see cref="ConstrainedItemList"/>.
    3537  /// </summary>
     38  [Content(typeof(ConstrainedItemList), true)]
    3639  public partial class ConstrainedItemListView : ViewBase {
    3740    private ChooseItemDialog chooseItemDialog;
     
    127130      if (itemsListView.SelectedItems.Count == 1) {
    128131        IItem data = (IItem)itemsListView.SelectedItems[0].Tag;
    129         Control view = (Control)data.CreateView();
     132        Control view = (Control)MainFormManager.CreateDefaultView(data);
    130133        detailsGroupBox.Controls.Add(view);
    131134        view.Dock = DockStyle.Fill;
     
    183186        ICollection<IConstraint> violatedConstraints;
    184187        if (!ConstrainedItemList.TryAdd(chooseItemDialog.Item, out violatedConstraints)) {
    185           Auxiliary.ShowConstraintViolationMessageBox(violatedConstraints);
     188          HeuristicLab.Core.Views.Auxiliary.ShowConstraintViolationMessageBox(violatedConstraints);
    186189        }
    187190      }
     
    191194      ICollection<IConstraint> violatedConstraints;
    192195      if (!ConstrainedItemList.TryRemoveAt(itemsListView.SelectedIndices[0], out violatedConstraints)) {
    193         Auxiliary.ShowConstraintViolationMessageBox(violatedConstraints);
     196        HeuristicLab.Core.Views.Auxiliary.ShowConstraintViolationMessageBox(violatedConstraints);
    194197      }
    195198    }
     
    201204        ICollection<IConstraint> violatedConstraints;
    202205        if (!ConstrainedItemList.TryRemoveAt(itemsListView.SelectedIndices[0], out violatedConstraints)) {
    203           Auxiliary.ShowConstraintViolationMessageBox(violatedConstraints);
     206          HeuristicLab.Core.Views.Auxiliary.ShowConstraintViolationMessageBox(violatedConstraints);
    204207        }
    205208      }
  • trunk/sources/HeuristicLab.Data/3.3/DoubleArrayData.cs

    r1853 r2520  
    6060
    6161    /// <summary>
    62     /// Creates a new instance of the <see cref="DoubleArrayDataView"/> class.
    63     /// </summary>
    64     /// <returns>The created instance of the <see cref="DoubleArrayDataView"/>.</returns>
    65     public override IView CreateView() {
    66       return new DoubleArrayDataView(this);
    67     }
    68    
    69     /// <summary>
    7062    /// The string representation of the array, formatted according to the given <paramref name="format"/>.
    7163    /// </summary>
  • trunk/sources/HeuristicLab.Data/3.3/DoubleArrayDataView.cs

    r1529 r2520  
    2727using System.Text;
    2828using System.Windows.Forms;
     29using HeuristicLab.MainForm;
    2930
    3031namespace HeuristicLab.Data {
     
    3334  /// symbolizing an array of double values.
    3435  /// </summary>
     36  [Content(typeof(DoubleArrayData), true)]
    3537  public partial class DoubleArrayDataView : ArrayDataBaseView {
    3638    /// <summary>
  • trunk/sources/HeuristicLab.Data/3.3/DoubleData.cs

    r1853 r2520  
    6060
    6161    /// <summary>
    62     /// Creates a new instance of the <see cref="DoubleDataView"/> class.
    63     /// </summary>
    64     /// <returns>The created instance of <see cref="DoubleDataView"/>.</returns>
    65     public override IView CreateView() {
    66       return new DoubleDataView(this);
    67     }
    68 
    69     /// <summary>
    7062    /// Clones the current instance and adds it to the dictionary <paramref name="clonedObjects"/>.
    7163    /// </summary>
  • trunk/sources/HeuristicLab.Data/3.3/DoubleDataView.cs

    r1529 r2520  
    2828using System.Windows.Forms;
    2929using HeuristicLab.Core;
     30using HeuristicLab.Core.Views;
     31using HeuristicLab.MainForm;
    3032
    3133namespace HeuristicLab.Data {
     
    3335  /// The visual representation of the class <see cref="DoubleData"/>, symbolizing a double value.
    3436  /// </summary>
     37  [Content(typeof(DoubleData), true)]
    3538  public partial class DoubleDataView : ViewBase {
    3639    /// <summary>
  • trunk/sources/HeuristicLab.Data/3.3/DoubleMatrixData.cs

    r1853 r2520  
    6060
    6161    /// <summary>
    62     /// Creates a new instance of the <see cref="DoubleMatrixDataView"/> class.
    63     /// </summary>
    64     /// <returns>The created instance as <see cref="DoubleMatrixDataView"/>.</returns>
    65     public override IView CreateView() {
    66       return new DoubleMatrixDataView(this);
    67     }
    68 
    69     /// <summary>
    7062    /// The string representation of the matrix.
    7163    /// </summary>
  • trunk/sources/HeuristicLab.Data/3.3/DoubleMatrixDataView.cs

    r1529 r2520  
    2727using System.Text;
    2828using System.Windows.Forms;
     29using HeuristicLab.MainForm;
    2930
    3031namespace HeuristicLab.Data {
     
    3334  /// matrix of double values.
    3435  /// </summary>
     36  [Content(typeof(DoubleMatrixData), true)]
    3537  public partial class DoubleMatrixDataView : MatrixDataBaseView {
    3638    /// <summary>
  • trunk/sources/HeuristicLab.Data/3.3/EditKeyValueDialog.cs

    r1529 r2520  
    44using System.Text;
    55using System.Windows.Forms;
    6 using HeuristicLab.Core;
     6using HeuristicLab.Core;
     7using HeuristicLab.MainForm;
    78
    89namespace HeuristicLab.Data {
     
    3738      key = (IItem) Activator.CreateInstance(keyType);
    3839      value = (IItem) Activator.CreateInstance(valueType);
    39       keyPanel.Controls.Add((Control) key.CreateView());
    40       valuePanel.Controls.Add((Control) value.CreateView());
     40      keyPanel.Controls.Add((Control)MainFormManager.CreateDefaultView(key));
     41      valuePanel.Controls.Add((Control)MainFormManager.CreateDefaultView(value));
    4142    }
    4243
  • trunk/sources/HeuristicLab.Data/3.3/HeuristicLab.Data-3.3.csproj

    r2474 r2520  
    241241      <Name>HeuristicLab.Common-3.2</Name>
    242242    </ProjectReference>
     243    <ProjectReference Include="..\..\HeuristicLab.Core.Views\3.3\HeuristicLab.Core.Views-3.3.csproj">
     244      <Project>{E226881D-315F-423D-B419-A766FE0D8685}</Project>
     245      <Name>HeuristicLab.Core.Views-3.3</Name>
     246    </ProjectReference>
    243247    <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj">
    244248      <Project>{C36BD924-A541-4A00-AFA8-41701378DDC5}</Project>
    245249      <Name>HeuristicLab.Core-3.3</Name>
     250    </ProjectReference>
     251    <ProjectReference Include="..\..\HeuristicLab.MainForm.WindowsForms\3.2\HeuristicLab.MainForm.WindowsForms-3.2.csproj">
     252      <Project>{AB687BBE-1BFE-476B-906D-44237135431D}</Project>
     253      <Name>HeuristicLab.MainForm.WindowsForms-3.2</Name>
     254    </ProjectReference>
     255    <ProjectReference Include="..\..\HeuristicLab.MainForm\3.2\HeuristicLab.MainForm-3.2.csproj">
     256      <Project>{3BD61258-31DA-4B09-89C0-4F71FEF5F05A}</Project>
     257      <Name>HeuristicLab.MainForm-3.2</Name>
    246258    </ProjectReference>
    247259    <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj">
  • trunk/sources/HeuristicLab.Data/3.3/HeuristicLabDataPlugin.cs

    r2474 r2520  
    3333  [Dependency(Dependency = "HeuristicLab.Common-3.2")]
    3434  [Dependency(Dependency = "HeuristicLab.Core-3.3")]
     35  [Dependency(Dependency = "HeuristicLab.Core.Views-3.3")]
     36  [Dependency(Dependency = "HeuristicLab.MainForm-3.2")]
     37  [Dependency(Dependency = "HeuristicLab.MainForm.WindowsForms-3.2")]
    3538  [Dependency(Dependency = "HeuristicLab.Persistence-3.3")]
    3639  public class HeuristicLabDataPlugin : PluginBase {
  • trunk/sources/HeuristicLab.Data/3.3/IntArrayData.cs

    r1853 r2520  
    6060
    6161    /// <summary>
    62     /// Creates a enw instance of <see cref="IntArrayDataView"/>.
    63     /// </summary>
    64     /// <returns>The created instance as <see cref="IntArrayDataView"/>.</returns>
    65     public override IView CreateView() {
    66       return new IntArrayDataView(this);
    67     }
    68 
    69     /// <summary>
    7062    /// The string representation of the array, formatted according to the given <paramref name="format"/>.
    7163    /// </summary>
  • trunk/sources/HeuristicLab.Data/3.3/IntArrayDataView.cs

    r1529 r2520  
    2727using System.Text;
    2828using System.Windows.Forms;
     29using HeuristicLab.MainForm;
    2930
    3031namespace HeuristicLab.Data {
     
    3334  /// symbolizing an array of int values.
    3435  /// </summary>
     36  [Content(typeof(IntArrayData), true)]
    3537  public partial class IntArrayDataView : ArrayDataBaseView {
    3638    /// <summary>
  • trunk/sources/HeuristicLab.Data/3.3/IntData.cs

    r1853 r2520  
    5959
    6060    /// <summary>
    61     /// Creates a new instance of the class <see cref="IntDataView"/>.
    62     /// </summary>
    63     /// <returns>The created instance as <see cref="IntDataView"/>.</returns>
    64     public override IView CreateView() {
    65       return new IntDataView(this);
    66     }
    67 
    68     /// <summary>
    6961    /// Clones the current instance.
    7062    /// </summary>
  • trunk/sources/HeuristicLab.Data/3.3/IntDataView.cs

    r1529 r2520  
    2828using System.Windows.Forms;
    2929using HeuristicLab.Core;
     30using HeuristicLab.Core.Views;
     31using HeuristicLab.MainForm;
    3032
    3133namespace HeuristicLab.Data {
     
    3335  /// The visual representation of the class <see cref="IntData"/>, symbolizing an int value.
    3436  /// </summary>
     37  [Content(typeof(IntData), true)]
    3538  public partial class IntDataView : ViewBase {
    3639    /// <summary>
  • trunk/sources/HeuristicLab.Data/3.3/IntMatrixData.cs

    r1853 r2520  
    6060
    6161    /// <summary>
    62     /// Creates a new instance of <see cref="IntMatrixDataView"/>.
    63     /// </summary>
    64     /// <returns>The created instance as <see cref="IntMatrixDataView"/>.</returns>
    65     public override IView CreateView() {
    66       return new IntMatrixDataView(this);
    67     }
    68 
    69     /// <summary>
    7062    /// The string representation of the matrix.
    7163    /// </summary>
  • trunk/sources/HeuristicLab.Data/3.3/IntMatrixDataView.cs

    r1529 r2520  
    2727using System.Text;
    2828using System.Windows.Forms;
     29using HeuristicLab.MainForm;
    2930
    3031namespace HeuristicLab.Data {
     
    3334  /// matrix of int values.
    3435  /// </summary>
     36  [Content(typeof(IntMatrixData), true)]
    3537  public partial class IntMatrixDataView : MatrixDataBaseView {
    3638    /// <summary>
  • trunk/sources/HeuristicLab.Data/3.3/ItemDictionaryView_T.cs

    r2474 r2520  
    77using System.Windows.Forms;
    88using HeuristicLab.Core;
     9using HeuristicLab.Core.Views;
    910using HeuristicLab.Common;
     11using HeuristicLab.MainForm;
    1012
    1113namespace HeuristicLab.Data {
     
    1517  /// <typeparam name="K">The type of the keys of the dictionary.</typeparam>
    1618  /// <typeparam name="V">The type of the values of the dictionary.</typeparam>
     19  [Content(typeof(ItemDictionary<IItem, IItem>), true)]
    1720  public partial class ItemDictionaryView<K, V> : ViewBase
    1821    where K : IItem
     
    110113        K key = (K) listView.SelectedItems[0].SubItems[0].Tag;
    111114        V data = (V) listView.SelectedItems[0].SubItems[1].Tag;
    112         Control keyView = (Control) key.CreateView();
    113         Control dataView = (Control) data.CreateView();
     115        Control keyView = (Control) MainFormManager.CreateDefaultView(key);
     116        Control dataView = (Control) MainFormManager.CreateDefaultView(data);
    114117        keyPanel.Controls.Add(keyView);
    115118        detailsPanel.Controls.Add(dataView);
     
    203206          }
    204207        } catch (Exception ex) {
    205           Auxiliary.ShowErrorMessageBox(ex);
     208          HeuristicLab.Core.Views.Auxiliary.ShowErrorMessageBox(ex);
    206209        }
    207210      }
  • trunk/sources/HeuristicLab.Data/3.3/ItemDictionary_T.cs

    r2474 r2520  
    3939
    4040    #region ItemBase Members
    41     /// <summary>
    42     /// Creates a new instance of <see cref="ItemDictionaryView&lt;K,V&gt;"/>.
    43     /// </summary>
    44     /// <returns>The created instance as <see cref="ItemDictionaryView&lt;K,V&gt;"/>.</returns>
    45     public override IView CreateView() {
    46       return new ItemDictionaryView<K,V>(this);
    47     }
    48 
    4941    /// <summary>
    5042    /// Clones the current instance and adds it to the dictionary <paramref name="clonedObjects"/>.
  • trunk/sources/HeuristicLab.Data/3.3/ItemListView.cs

    r1529 r2520  
    2828using System.Windows.Forms;
    2929using HeuristicLab.Core;
     30using HeuristicLab.MainForm;
    3031
    3132namespace HeuristicLab.Data {
     
    3334  /// The visual representation of the class <see cref="ItemList"/>.
    3435  /// </summary>
     36  [Content(typeof(ItemList<IItem>), true)]
    3537  public class ItemListView : ItemListView<IItem> {
    3638    /// <summary>
  • trunk/sources/HeuristicLab.Data/3.3/ItemListView_T.cs

    r2474 r2520  
    2828using System.Windows.Forms;
    2929using HeuristicLab.Core;
     30using HeuristicLab.Core.Views;
    3031using HeuristicLab.Common;
     32using HeuristicLab.MainForm;
    3133
    3234namespace HeuristicLab.Data {
     
    128130      if(itemsListView.SelectedItems.Count == 1) {
    129131        IItem data = (IItem)itemsListView.SelectedItems[0].Tag;
    130         Control view = (Control)data.CreateView();
     132        Control view = (Control)MainFormManager.CreateDefaultView(data);
    131133        detailsGroupBox.Controls.Add(view);
    132134        view.Dock = DockStyle.Fill;
     
    171173          ItemList.Add((T)chooseItemDialog.Item);
    172174        } catch(Exception ex) {
    173           Auxiliary.ShowErrorMessageBox(ex);
     175          HeuristicLab.Core.Views.Auxiliary.ShowErrorMessageBox(ex);
    174176        }
    175177      }
  • trunk/sources/HeuristicLab.Data/3.3/ItemList_T.cs

    r2474 r2520  
    4747
    4848    /// <summary>
    49     /// Creates a new instance of <see cref="ItemListView&lt;T&gt;"/>.
    50     /// </summary>
    51     /// <returns>The created instance as <see cref="ItemListView&lt;T&gt;"/>.</returns>
    52     public override IView CreateView() {
    53       return new ItemListView<T>(this);
    54     }
    55 
    56     /// <summary>
    5749    /// Clones the current instance.
    5850    /// </summary>
  • trunk/sources/HeuristicLab.Data/3.3/MatrixDataBaseView.cs

    r1529 r2520  
    2828using System.Windows.Forms;
    2929using HeuristicLab.Core;
     30using HeuristicLab.Core.Views;
    3031
    3132namespace HeuristicLab.Data {
  • trunk/sources/HeuristicLab.Data/3.3/StringData.cs

    r1853 r2520  
    5757      Data = data;
    5858    }
    59    
    60     /// <summary>
    61     /// Creates a new instance of <see cref="StringDataView"/>.
    62     /// </summary>
    63     /// <returns>The created instance as <see cref="StringDataView"/>.</returns>
    64     public override IView CreateView() {
    65       return new StringDataView(this);
    66     }
    6759
    6860    /// <summary>
  • trunk/sources/HeuristicLab.Data/3.3/StringDataView.cs

    r1529 r2520  
    2828using System.Windows.Forms;
    2929using HeuristicLab.Core;
     30using HeuristicLab.Core.Views;
     31using HeuristicLab.MainForm;
    3032
    3133namespace HeuristicLab.Data {
     
    3335  /// The visual representation of the class <see cref="StringData"/>, symbolizing a string value.
    3436  /// </summary>
     37  [Content(typeof(StringData), true)]
    3538  public partial class StringDataView : ViewBase {
    3639    /// <summary>
Note: See TracChangeset for help on using the changeset viewer.