Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/23/14 05:32:41 (10 years ago)
Author:
swagner
Message:

#2205: Continued working on programmable network items

Location:
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3
Files:
3 added
2 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/Core.Networks.Views/NetworkItemView.cs

    r11538 r11564  
    2727  [View("NetworkItem View")]
    2828  [Content(typeof(NetworkItem), true)]
     29  [Content(typeof(ProgrammableNetworkItem), true)]
    2930  [Content(typeof(INetworkItem), false)]
    3031  public partial class NetworkItemView : NamedItemView {
  • branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/Core.Networks.Views/NetworkView.cs

    r11530 r11564  
    2626  [View("Network View")]
    2727  [Content(typeof(Network), true)]
     28  [Content(typeof(ProgrammableNetwork), true)]
    2829  [Content(typeof(INetwork), false)]
    2930  public partial class NetworkView : NetworkItemView {
  • branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/Core.Networks.Views/NodeView.cs

    r11528 r11564  
    2626  [View("Node View")]
    2727  [Content(typeof(Node), true)]
     28  [Content(typeof(ProgrammableNode), true)]
    2829  [Content(typeof(INode), false)]
    2930  public partial class NodeView : NetworkItemView {
  • branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/Core.Networks.Views/UserDefinedNetworkView.Designer.cs

    r11529 r11564  
    4545    /// </summary>
    4646    private void InitializeComponent() {
    47       this.components = new System.ComponentModel.Container();
     47      this.codeTabPage = new System.Windows.Forms.TabPage();
     48      this.programmableItemView = new HeuristicLab.Core.Views.ProgrammableItemView();
     49      this.tabControl.SuspendLayout();
     50      this.nodesTabPage.SuspendLayout();
     51      this.portsTabPage.SuspendLayout();
     52      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
     53      this.SuspendLayout();
     54      //
     55      // tabControl
     56      //
     57      this.tabControl.Controls.Add(this.codeTabPage);
     58      this.tabControl.Controls.SetChildIndex(this.codeTabPage, 0);
     59      this.tabControl.Controls.SetChildIndex(this.portsTabPage, 0);
     60      this.tabControl.Controls.SetChildIndex(this.nodesTabPage, 0);
     61      //
     62      // nameTextBox
     63      //
     64      this.errorProvider.SetIconAlignment(this.nameTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
     65      this.errorProvider.SetIconPadding(this.nameTextBox, 2);
     66      //
     67      // codeTabPage
     68      //
     69      this.codeTabPage.Controls.Add(this.programmableItemView);
     70      this.codeTabPage.Location = new System.Drawing.Point(4, 22);
     71      this.codeTabPage.Name = "codeTabPage";
     72      this.codeTabPage.Size = new System.Drawing.Size(637, 465);
     73      this.codeTabPage.TabIndex = 2;
     74      this.codeTabPage.Text = "Code";
     75      this.codeTabPage.UseVisualStyleBackColor = true;
     76      //
     77      // programmableItemView
     78      //
     79      this.programmableItemView.Caption = "ProgrammableItem View";
     80      this.programmableItemView.Content = null;
     81      this.programmableItemView.Dock = System.Windows.Forms.DockStyle.Fill;
     82      this.programmableItemView.Location = new System.Drawing.Point(3, 3);
     83      this.programmableItemView.Name = "programmableItemView";
     84      this.programmableItemView.ReadOnly = false;
     85      this.programmableItemView.Size = new System.Drawing.Size(631, 459);
     86      this.programmableItemView.TabIndex = 0;
     87      //
     88      // UserDefinedNetworkView
     89      //
     90      this.Name = "UserDefinedNetworkView";
     91      this.tabControl.ResumeLayout(false);
     92      this.nodesTabPage.ResumeLayout(false);
     93      this.portsTabPage.ResumeLayout(false);
     94      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
     95      this.ResumeLayout(false);
     96      this.PerformLayout();
     97
    4898    }
    4999
    50100    #endregion
     101
     102    protected System.Windows.Forms.TabPage codeTabPage;
     103    protected HeuristicLab.Core.Views.ProgrammableItemView programmableItemView;
    51104  }
    52105}
  • branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/Core.Networks.Views/UserDefinedNetworkView.cs

    r11530 r11564  
    4141      nodeCollectionView.Content = Content == null ? null : Content.Nodes;
    4242      portCollectionView.Content = Content == null ? null : Content.Ports;
     43      programmableItemView.Content = Content;
    4344    }
    4445  }
  • branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/Core.Networks.Views/UserDefinedNodeView.Designer.cs

    r11529 r11564  
    4545    /// </summary>
    4646    private void InitializeComponent() {
    47       this.components = new System.ComponentModel.Container();
     47      this.tabControl = new HeuristicLab.MainForm.WindowsForms.DragOverTabControl();
     48      this.portsTabPage = new System.Windows.Forms.TabPage();
     49      this.codeTabPage = new System.Windows.Forms.TabPage();
     50      this.portCollectionView = new HeuristicLab.Core.Networks.Views.PortCollectionView();
     51      this.programmableItemView = new HeuristicLab.Core.Views.ProgrammableItemView();
     52      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
     53      this.tabControl.SuspendLayout();
     54      this.portsTabPage.SuspendLayout();
     55      this.SuspendLayout();
     56      //
     57      // nameTextBox
     58      //
     59      this.errorProvider.SetIconAlignment(this.nameTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
     60      this.errorProvider.SetIconPadding(this.nameTextBox, 2);
     61      //
     62      // tabControl
     63      //
     64      this.tabControl.AllowDrop = true;
     65      this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     66            | System.Windows.Forms.AnchorStyles.Left)
     67            | System.Windows.Forms.AnchorStyles.Right)));
     68      this.tabControl.Controls.Add(this.portsTabPage);
     69      this.tabControl.Controls.Add(this.codeTabPage);
     70      this.tabControl.Location = new System.Drawing.Point(0, 26);
     71      this.tabControl.Name = "tabControl";
     72      this.tabControl.SelectedIndex = 0;
     73      this.tabControl.Size = new System.Drawing.Size(645, 491);
     74      this.tabControl.TabIndex = 3;
     75      //
     76      // portsTabPage
     77      //
     78      this.portsTabPage.Controls.Add(this.portCollectionView);
     79      this.portsTabPage.Location = new System.Drawing.Point(4, 22);
     80      this.portsTabPage.Name = "portsTabPage";
     81      this.portsTabPage.Padding = new System.Windows.Forms.Padding(3);
     82      this.portsTabPage.Size = new System.Drawing.Size(637, 465);
     83      this.portsTabPage.TabIndex = 0;
     84      this.portsTabPage.Text = "Ports";
     85      this.portsTabPage.UseVisualStyleBackColor = true;
     86      //
     87      // codeTabPage
     88      //
     89      this.codeTabPage.Controls.Add(this.programmableItemView);
     90      this.codeTabPage.Location = new System.Drawing.Point(4, 22);
     91      this.codeTabPage.Name = "codeTabPage";
     92      this.codeTabPage.Padding = new System.Windows.Forms.Padding(3);
     93      this.codeTabPage.Size = new System.Drawing.Size(637, 465);
     94      this.codeTabPage.TabIndex = 1;
     95      this.codeTabPage.Text = "Code";
     96      this.codeTabPage.UseVisualStyleBackColor = true;
     97      //
     98      // portCollectionView
     99      //
     100      this.portCollectionView.Caption = "PortCollection View";
     101      this.portCollectionView.Content = null;
     102      this.portCollectionView.Dock = System.Windows.Forms.DockStyle.Fill;
     103      this.portCollectionView.Location = new System.Drawing.Point(3, 3);
     104      this.portCollectionView.Name = "portCollectionView";
     105      this.portCollectionView.ReadOnly = false;
     106      this.portCollectionView.ShowDetails = true;
     107      this.portCollectionView.Size = new System.Drawing.Size(631, 459);
     108      this.portCollectionView.TabIndex = 0;
     109      //
     110      // programmableItemView
     111      //
     112      this.programmableItemView.Caption = "ProgrammableItem View";
     113      this.programmableItemView.Content = null;
     114      this.programmableItemView.Dock = System.Windows.Forms.DockStyle.Fill;
     115      this.programmableItemView.Location = new System.Drawing.Point(3, 3);
     116      this.programmableItemView.Name = "programmableItemView";
     117      this.programmableItemView.ReadOnly = false;
     118      this.programmableItemView.Size = new System.Drawing.Size(631, 459);
     119      this.programmableItemView.TabIndex = 0;
     120      //
     121      // UserDefinedNodeView
     122      //
     123      this.Controls.Add(this.tabControl);
     124      this.Name = "UserDefinedNodeView";
     125      this.Controls.SetChildIndex(this.nameLabel, 0);
     126      this.Controls.SetChildIndex(this.nameTextBox, 0);
     127      this.Controls.SetChildIndex(this.infoLabel, 0);
     128      this.Controls.SetChildIndex(this.tabControl, 0);
     129      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
     130      this.tabControl.ResumeLayout(false);
     131      this.portsTabPage.ResumeLayout(false);
     132      this.ResumeLayout(false);
     133      this.PerformLayout();
     134
    48135    }
    49136
    50137    #endregion
     138
     139    protected MainForm.WindowsForms.DragOverTabControl tabControl;
     140    protected System.Windows.Forms.TabPage portsTabPage;
     141    protected PortCollectionView portCollectionView;
     142    protected System.Windows.Forms.TabPage codeTabPage;
     143    protected HeuristicLab.Core.Views.ProgrammableItemView programmableItemView;
     144
    51145  }
    52146}
  • branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/Core.Networks.Views/UserDefinedNodeView.cs

    r11529 r11564  
    2727  [Content(typeof(UserDefinedNode), true)]
    2828  [Content(typeof(IUserDefinedNode), false)]
    29   public partial class UserDefinedNodeView : NodeView {
     29  public partial class UserDefinedNodeView : NetworkItemView {
    3030    public new IUserDefinedNode Content {
    3131      get { return (IUserDefinedNode)base.Content; }
     
    4040      base.OnContentChanged();
    4141      portCollectionView.Content = Content == null ? null : Content.Ports;
     42      programmableItemView.Content = Content;
    4243    }
    4344  }
  • branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/HeuristicLab.Optimization.Networks.Views-3.3.csproj

    r11563 r11564  
    187187      <DependentUpon>PortView.cs</DependentUpon>
    188188    </Compile>
    189     <Compile Include="Core.Networks.Views\ProgrammableNetworkItemView.cs">
    190       <SubType>UserControl</SubType>
    191     </Compile>
    192     <Compile Include="Core.Networks.Views\ProgrammableNetworkItemView.Designer.cs">
    193       <DependentUpon>ProgrammableNetworkItemView.cs</DependentUpon>
     189    <Compile Include="Core.Views\ProgrammableItemView.cs">
     190      <SubType>UserControl</SubType>
     191    </Compile>
     192    <Compile Include="Core.Views\ProgrammableItemView.Designer.cs">
     193      <DependentUpon>ProgrammableItemView.cs</DependentUpon>
    194194    </Compile>
    195195    <Compile Include="Core.Networks.Views\UserDefinedNetworkView.cs">
Note: See TracChangeset for help on using the changeset viewer.