Exemple #1
0
 protected virtual void OnGraphMouseClick(GraphMouseEventArgs args)
 {
     var handler = GraphMouseClick;
     if (handler != null)
     {
         handler(this, args);
     }
 }
Exemple #2
0
 private void graphContainer_GraphMouseClick(
     object sender, 
     GraphMouseEventArgs e)
 {
     currentTool.ProcessGraphClick(e);
 }
Exemple #3
0
 public virtual void ProcessGraphClick(GraphMouseEventArgs args)
 {
     if (args.GraphObject is Node)
     {
         if (firstNode == null || secondNode != null)
         {
             Cleanup();
             firstNode = args.GraphObject as Node;
             parent.graphContainer.HighlightAsSelected(firstNode);
         }
         else
         {
             secondNode = args.GraphObject as Node;
             parent.graphContainer.HighlightAsSelected(secondNode);
             onTwoNodesSelected(firstNode, secondNode);
         }
     }
     else
     {
         Cleanup();
     }
 }
Exemple #4
0
 public override void ProcessGraphClick(GraphMouseEventArgs args)
 {
     base.ProcessGraphClick(args);
     parent.pathConstraintsEditor.StartNode = firstNode;
     parent.pathConstraintsEditor.EndNode = secondNode;
 }
Exemple #5
0
 public void ProcessGraphClick(GraphMouseEventArgs args)
 {
     if (args.GraphObject == null)
     {
         parent.graphObjectEditor.GraphObject = new Node()
         {
             Point = args.Location
         };
         parent.graphObjectEditor.Editing = true;
         parent.infoSplit.Panel2Collapsed = false;
     }
 }
Exemple #6
0
 public void ProcessGraphClick(GraphMouseEventArgs args)
 {
     parent.graphContainer.RemoveHighlight(selected);
     selected = args.GraphObject;
     if (selected != null)
     {
         parent.infoSplit.Panel2Collapsed = false;
         parent.graphObjectEditor.GraphObject = selected;
         parent.graphContainer.HighlightAsSelected(selected);
     }
     else
     {
         parent.infoSplit.Panel2Collapsed = true;
     }
 }