示例#1
0
        /// <summary>
        /// Compares to.
        /// </summary>
        /// <param name="edge">The edge.</param>
        /// <returns></returns>
        public bool CompareTo(CustomEdge edge)
        {
            if (edge != null)
            {
                if (string.Compare(this.Trigger.Trim(), edge.Trigger.Trim()) == 0)
                {
                    if (string.Compare(this.Source.Text, edge.Source.Text) == 0 && string.Compare(this.Target.Text, edge.Target.Text) == 0)
                    {
                        return(true);
                    }
                }
            }

            return(false);
        }
示例#2
0
 /// <summary>
 /// Get selected edge
 /// </summary>
 private void MouseEnter_EventEdge(object sender, RoutedEventArgs e)
 {
     this.selectedEdge = (CustomEdge)(sender as EdgeControl).Edge;
 }