Changeset 9011


Ignore:
Timestamp:
12/06/12 16:22:21 (10 years ago)
Author:
mkommend
Message:

#1991: Adapted OperatorGraphVisualization to ignore warnings regarding the obsolete attribute and adapted to the new BidirectionalDictionary if possible.

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators.Views.GraphVisualization.Views/3.3/GraphVisualizationInfoView.cs

    r7259 r9011  
    3535  [Content(typeof(IGraphVisualizationInfo), true)]
    3636  public partial class GraphVisualizationInfoView : AsynchronousContentView {
    37     private BidirectionalLookup<IShapeInfo, IShape> shapeInfoShapeMapping;
    38     private BidirectionalLookup<IConnectionInfo, IConnection> connectionInfoConnectionMapping;
     37    private BidirectionalDictionary<IShapeInfo, IShape> shapeInfoShapeMapping;
     38    private BidirectionalDictionary<IConnectionInfo, IConnection> connectionInfoConnectionMapping;
    3939    private LinePenStyle connectionPenStyle;
    4040
    4141    public GraphVisualizationInfoView() {
    4242      InitializeComponent();
    43       this.shapeInfoShapeMapping = new BidirectionalLookup<IShapeInfo, IShape>();
    44       this.connectionInfoConnectionMapping = new BidirectionalLookup<IConnectionInfo, IConnection>();
     43      this.shapeInfoShapeMapping = new BidirectionalDictionary<IShapeInfo, IShape>();
     44      this.connectionInfoConnectionMapping = new BidirectionalDictionary<IConnectionInfo, IConnection>();
    4545      this.connectionPenStyle = new LinePenStyle();
    4646      this.connectionPenStyle.EndCap = LineCap.ArrowAnchor;
  • trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/OperatorGraphVisualization/OperatorGraphVisualizationInfo.cs

    r7259 r9011  
    3232  [StorableClass]
    3333  public sealed class OperatorGraphVisualizationInfo : GraphVisualizationInfo {
     34#pragma warning disable 618
    3435    [Storable]
    3536    private BidirectionalLookup<IOperator, IOperatorShapeInfo> operatorShapeInfoMapping;
    3637    private BidirectionalLookup<IOperator, IKeyedItemCollection<string, IParameter>> operatorParameterCollectionMapping;
     38#pragma warning restore 618
    3739    private Dictionary<IParameter, IOperator> parameterOperatorMapping;
    3840
    3941    private OperatorGraphVisualizationInfo()
    4042      : base() {
     43#pragma warning disable 618
    4144      this.operatorShapeInfoMapping = new BidirectionalLookup<IOperator, IOperatorShapeInfo>();
    4245      this.operatorParameterCollectionMapping = new BidirectionalLookup<IOperator, IKeyedItemCollection<string, IParameter>>();
     46#pragma warning restore 618
    4347      this.parameterOperatorMapping = new Dictionary<IParameter, IOperator>();
    4448    }
     
    4751    private OperatorGraphVisualizationInfo(bool deserializing)
    4852      : base(deserializing) {
     53#pragma warning disable 618
    4954      this.operatorParameterCollectionMapping = new BidirectionalLookup<IOperator, IKeyedItemCollection<string, IParameter>>();
     55#pragma warning restore 618
    5056      this.parameterOperatorMapping = new Dictionary<IParameter, IOperator>();
    5157    }
    5258    private OperatorGraphVisualizationInfo(OperatorGraphVisualizationInfo original, Cloner cloner)
    5359      : base(original, cloner) {
     60#pragma warning disable 618
    5461      operatorShapeInfoMapping = new BidirectionalLookup<IOperator, IOperatorShapeInfo>();
    5562      operatorParameterCollectionMapping = new BidirectionalLookup<IOperator, IKeyedItemCollection<string, IParameter>>();
     63#pragma warning restore 618
    5664      parameterOperatorMapping = new Dictionary<IParameter, IOperator>();
    5765
Note: See TracChangeset for help on using the changeset viewer.