Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/22/10 00:44:01 (14 years ago)
Author:
swagner
Message:

Sorted usings and removed unused usings in entire solution (#1094)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/Analysis/Connection.Analysis.cs

    r2768 r4068  
    1 using System;
    2 using System.Collections.Generic;
    3 using System.Text;
    41using Netron.Diagramming.Core.Analysis;
    5 namespace Netron.Diagramming.Core
    6 {
    7     public partial class Connection : IEdge
    8     {
    9         #region Fields
    10         private bool mIsDirected = false;
     2namespace Netron.Diagramming.Core {
     3  public partial class Connection : IEdge {
     4    #region Fields
     5    private bool mIsDirected = false;
    116
    12         #endregion
     7    #endregion
    138
    149
    15         bool IEdge.IsDirected
    16         {
    17             get { return mIsDirected; }
    18             set { mIsDirected = value; }
    19         }
     10    bool IEdge.IsDirected {
     11      get { return mIsDirected; }
     12      set { mIsDirected = value; }
     13    }
    2014
    21         INode IEdge.SourceNode
    22         {
    23             get {
    24                 if (From.AttachedTo == null)
    25                     return null;
    26                 else
    27                     return From.AttachedTo.Parent as INode;
    28             }
    29         }
     15    INode IEdge.SourceNode {
     16      get {
     17        if (From.AttachedTo == null)
     18          return null;
     19        else
     20          return From.AttachedTo.Parent as INode;
     21      }
     22    }
    3023
    31         INode IEdge.TargetNode
    32         {
    33             get {
    34                 if (To.AttachedTo == null)
    35                     return null;
    36                 else
    37                     return To.AttachedTo.Parent as INode;
    38             }
    39         }
     24    INode IEdge.TargetNode {
     25      get {
     26        if (To.AttachedTo == null)
     27          return null;
     28        else
     29          return To.AttachedTo.Parent as INode;
     30      }
     31    }
    4032
    41         INode IEdge.AdjacentNode(INode node)
    42         {
    43             if (From.AttachedTo != null && (node as IShape) == From.AttachedTo.Parent)
    44             {
    45                 if (To.AttachedTo == null)
    46                     return null;
    47                 else
    48                     return To.AttachedTo.Parent as INode;
    49             }
    50             else if (To.AttachedTo.Parent != null && (node as IShape) == To.AttachedTo.Parent)
    51             {
    52                 if (From.AttachedTo == null)
    53                     return null;
    54                 else
    55                     return From.AttachedTo.Parent as INode;
    56             }
    57             else
    58                 throw new InconsistencyException("The given node is not part of the edge.");
     33    INode IEdge.AdjacentNode(INode node) {
     34      if (From.AttachedTo != null && (node as IShape) == From.AttachedTo.Parent) {
     35        if (To.AttachedTo == null)
     36          return null;
     37        else
     38          return To.AttachedTo.Parent as INode;
     39      } else if (To.AttachedTo.Parent != null && (node as IShape) == To.AttachedTo.Parent) {
     40        if (From.AttachedTo == null)
     41          return null;
     42        else
     43          return From.AttachedTo.Parent as INode;
     44      } else
     45        throw new InconsistencyException("The given node is not part of the edge.");
    5946
    60         }
    6147    }
     48  }
    6249}
Note: See TracChangeset for help on using the changeset viewer.