Changeset 11501 for branches/OptimizationNetworks/HeuristicLab.Optimization.Networks/3.3/Ports/PortParameter.cs
- Timestamp:
- 10/25/14 02:54:42 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OptimizationNetworks/HeuristicLab.Optimization.Networks/3.3/Ports/PortParameter.cs
r11500 r11501 35 35 public override Image ItemImage { 36 36 get { 37 if (Type == PortParameterType.Input) return HeuristicLab.Common.Resources.VSImageLibrary.ArrowDown; 38 else if (Type == PortParameterType.Output) return HeuristicLab.Common.Resources.VSImageLibrary.ArrowUp; 39 else return base.ItemImage; 37 if (Type.HasFlag(PortParameterType.Input) && Type.HasFlag(PortParameterType.Output)) 38 return HeuristicLab.Common.Resources.VSImageLibrary.Field; 39 else if (Type.HasFlag(PortParameterType.Input)) 40 return HeuristicLab.Common.Resources.VSImageLibrary.ArrowDown; 41 else if (Type.HasFlag(PortParameterType.Output)) 42 return HeuristicLab.Common.Resources.VSImageLibrary.ArrowUp; 43 else 44 return base.ItemImage; 40 45 } 41 46 } … … 96 101 RegisterDefaultValueEvents(); 97 102 } 98 public PortParameter() : base("PortParameter") { } 99 public PortParameter(string name) : base(name) { } 100 public PortParameter(string name, string description) : base(name, description) { } 103 public PortParameter() 104 : base("PortParameter") { 105 type = PortParameterType.Input; 106 } 107 public PortParameter(string name) 108 : base(name) { 109 type = PortParameterType.Input; 110 } 111 public PortParameter(string name, string description) 112 : base(name, description) { 113 type = PortParameterType.Input; 114 } 101 115 102 116 [StorableHook(HookType.AfterDeserialization)]
Note: See TracChangeset
for help on using the changeset viewer.