- Timestamp:
- 10/12/14 03:02:37 (10 years ago)
- Location:
- branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/AlgorithmNodeView.cs
r11412 r11452 30 30 [Content(typeof(AlgorithmNode), true)] 31 31 [Content(typeof(IAlgorithmNode), false)] 32 public partial class AlgorithmNodeView : NodeView {32 public partial class AlgorithmNodeView : EntityView { 33 33 protected TypeSelectorDialog typeSelectorDialog; 34 34 -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/HeuristicLab.Optimization.Networks.Views-3.3.csproj
r11449 r11452 103 103 <DependentUpon>EntityView.cs</DependentUpon> 104 104 </Compile> 105 <Compile Include="InputOutputPortView.cs"> 106 <SubType>UserControl</SubType> 107 </Compile> 108 <Compile Include="InputOutputPortView.Designer.cs"> 109 <DependentUpon>InputOutputPortView.cs</DependentUpon> 110 </Compile> 105 111 <Compile Include="PortView.cs"> 106 112 <SubType>UserControl</SubType> -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/NodeView.Designer.cs
r11409 r11452 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 this.portCollectionView = new HeuristicLab.Optimization.Networks.Views.PortCollectionView(); 47 48 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 48 49 this.SuspendLayout(); … … 52 53 this.errorProvider.SetIconAlignment(this.nameTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 53 54 this.errorProvider.SetIconPadding(this.nameTextBox, 2); 54 this.nameTextBox.Location = new System.Drawing.Point(69, 0);55 this.nameTextBox.Size = new System.Drawing.Size(551, 20);56 55 // 57 // infoLabel56 // portCollectionView 58 57 // 59 this.infoLabel.Location = new System.Drawing.Point(626, 3); 58 this.portCollectionView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 59 | System.Windows.Forms.AnchorStyles.Left) 60 | System.Windows.Forms.AnchorStyles.Right))); 61 this.portCollectionView.Caption = "PortCollection View"; 62 this.portCollectionView.Content = null; 63 this.portCollectionView.Location = new System.Drawing.Point(0, 26); 64 this.portCollectionView.Name = "portCollectionView"; 65 this.portCollectionView.ReadOnly = false; 66 this.portCollectionView.ShowDetails = true; 67 this.portCollectionView.Size = new System.Drawing.Size(645, 491); 68 this.portCollectionView.TabIndex = 3; 60 69 // 61 70 // NodeView 62 71 // 63 72 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 73 this.Controls.Add(this.portCollectionView); 64 74 this.Name = "NodeView"; 65 this.Size = new System.Drawing.Size(645, 517); 75 this.Controls.SetChildIndex(this.nameLabel, 0); 76 this.Controls.SetChildIndex(this.nameTextBox, 0); 77 this.Controls.SetChildIndex(this.infoLabel, 0); 78 this.Controls.SetChildIndex(this.portCollectionView, 0); 66 79 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 67 80 this.ResumeLayout(false); … … 72 85 #endregion 73 86 87 protected PortCollectionView portCollectionView; 88 89 74 90 75 91 -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/NodeView.cs
r11449 r11452 38 38 } 39 39 40 protected override void DeregisterContentEvents() {41 // remove events here42 base.DeregisterContentEvents();43 }44 45 protected override void RegisterContentEvents() {46 base.RegisterContentEvents();47 // add events here48 }49 50 40 protected override void OnContentChanged() { 51 41 base.OnContentChanged(); 52 //...42 portCollectionView.Content = Content == null ? null : Content.Ports; 53 43 } 54 44 55 45 protected override void SetEnabledStateOfControls() { 56 46 base.SetEnabledStateOfControls(); 57 //...47 portCollectionView.Enabled = Content != null && !ReadOnly; 58 48 } 59 49 } -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/VariablesNodeView.Designer.cs
r11412 r11452 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 this.portCollectionView = new HeuristicLab.Optimization.Networks.Views.PortCollectionView();48 47 this.splitContainer = new System.Windows.Forms.SplitContainer(); 49 48 this.variableCollectionView = new HeuristicLab.Core.Views.VariableCollectionView(); 49 this.portCollectionView = new HeuristicLab.Optimization.Networks.Views.PortCollectionView(); 50 50 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 51 51 ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit(); … … 59 59 this.errorProvider.SetIconAlignment(this.nameTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 60 60 this.errorProvider.SetIconPadding(this.nameTextBox, 2); 61 //62 // portCollectionView63 //64 this.portCollectionView.Caption = "PortCollection View";65 this.portCollectionView.Content = null;66 this.portCollectionView.Dock = System.Windows.Forms.DockStyle.Fill;67 this.portCollectionView.Location = new System.Drawing.Point(0, 0);68 this.portCollectionView.Name = "portCollectionView";69 this.portCollectionView.ReadOnly = false;70 this.portCollectionView.ShowDetails = true;71 this.portCollectionView.Size = new System.Drawing.Size(645, 238);72 this.portCollectionView.TabIndex = 0;73 61 // 74 62 // splitContainer … … 89 77 this.splitContainer.Panel2.Controls.Add(this.variableCollectionView); 90 78 this.splitContainer.Size = new System.Drawing.Size(645, 491); 91 this.splitContainer.SplitterDistance = 23 8;79 this.splitContainer.SplitterDistance = 237; 92 80 this.splitContainer.TabIndex = 3; 93 81 // … … 101 89 this.variableCollectionView.ReadOnly = false; 102 90 this.variableCollectionView.ShowDetails = true; 103 this.variableCollectionView.Size = new System.Drawing.Size(645, 2 49);91 this.variableCollectionView.Size = new System.Drawing.Size(645, 250); 104 92 this.variableCollectionView.TabIndex = 0; 93 // 94 // portCollectionView 95 // 96 this.portCollectionView.Caption = "PortCollection View"; 97 this.portCollectionView.Content = null; 98 this.portCollectionView.Dock = System.Windows.Forms.DockStyle.Fill; 99 this.portCollectionView.Location = new System.Drawing.Point(0, 0); 100 this.portCollectionView.Name = "portCollectionView"; 101 this.portCollectionView.ReadOnly = false; 102 this.portCollectionView.ShowDetails = true; 103 this.portCollectionView.Size = new System.Drawing.Size(645, 237); 104 this.portCollectionView.TabIndex = 0; 105 105 // 106 106 // VariablesNodeView … … 125 125 #endregion 126 126 127 protected PortCollectionView portCollectionView;128 127 protected System.Windows.Forms.SplitContainer splitContainer; 129 128 protected Core.Views.VariableCollectionView variableCollectionView; 129 private PortCollectionView portCollectionView; 130 130 131 131 -
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks.Views/3.3/VariablesNodeView.cs
r11412 r11452 30 30 [Content(typeof(VariablesNode), true)] 31 31 [Content(typeof(IVariablesNode), false)] 32 public partial class VariablesNodeView : NodeView {32 public partial class VariablesNodeView : EntityView { 33 33 public new IVariablesNode Content { 34 34 get { return (IVariablesNode)base.Content; }
Note: See TracChangeset
for help on using the changeset viewer.