Beispiel #1
0
        /// <summary>
        /// Compares to.
        /// </summary>
        /// <param name="vertex">The vertex.</param>
        /// <returns></returns>
        public bool CompareTo(CustomVertex vertex)
        {
            if (vertex != null)
            {
                if (string.Compare(this.Text.Trim(), vertex.Text.Trim()) == 0)
                {
                    return(true);
                }
            }

            return(false);
        }
Beispiel #2
0
 /// <summary>
 /// Get selected vertex
 /// </summary>
 private void MyMouseRightButtonDownHandler(object sender, MouseButtonEventArgs e)
 {
   this.selectedVertex = (CustomVertex)(sender as VertexControl).Vertex;
 }
Beispiel #3
0
 public virtual void UnhideEdges(CustomVertex vertex, List<CustomEdge> edgeIn, List<CustomEdge> edgesOut)
 { 
 }
Beispiel #4
0
 public virtual void AddNewEdge(CustomVertex vertexFrom, string trigger, CustomVertex vertexTo)
 {
 }
Beispiel #5
0
        /// <summary>
        /// Compares to.
        /// </summary>
        /// <param name="vertex">The vertex.</param>
        /// <returns></returns>
        public bool CompareTo(CustomVertex vertex)
        {
            if (vertex != null)
            {
                if (string.Compare(this.Text.Trim(), vertex.Text.Trim()) == 0)
                {
                    return true;
                }
            }

            return false;
        }
Beispiel #6
0
 /// <summary>
 /// Get selected vertex
 /// </summary>
 private void MyMouseRightButtonDownHandler(object sender, MouseButtonEventArgs e)
 {
     this.selectedVertex = (CustomVertex)(sender as VertexControl).Vertex;
 }
Beispiel #7
0
 public virtual void UnhideEdges(CustomVertex vertex, List <CustomEdge> edgeIn, List <CustomEdge> edgesOut)
 {
 }
Beispiel #8
0
 public virtual void AddNewEdge(CustomVertex vertexFrom, string trigger, CustomVertex vertexTo)
 {
 }