private void AddNewVertice(SilverlightEdge edge1, SilverlightEdge edge2) { if (!Vertice.CheckIfVerticeExist(edge1.Edge, edge2.Edge)) { SilverlightVertice vertice = new SilverlightVertice(edge1.Position, edge2.Position); vertice.Line.MouseLeftButtonDown += new MouseButtonEventHandler(line_MouseLeftButtonDown); edge1.Edge.AddVertice(new Vertice(edge2.Edge)); edge2.Edge.AddVertice(new Vertice(edge1.Edge)); this.LayoutRoot.Children.Add(vertice.Line); } }