예제 #1
0
 public CreateNode(string stackId, string i, UIGraph g, string[] gstack = null)
 {
     id      = i;
     graph   = g;
     StackId = stackId;
     if (gstack == null)
     {
         stack = graph.GetGraphStack();
     }
     else
     {
         stack = gstack;
     }
 }
예제 #2
0
        public DeleteNode(string stackId, string js, string id, Point p, List <NodeConnection> pars, UIGraph g, string[] gstack = null)
        {
            json    = js;
            nid     = id;
            graph   = g;
            point   = p;
            parents = pars;
            StackId = stackId;

            if (gstack == null)
            {
                stack = graph.GetGraphStack();
            }
            else
            {
                stack = gstack;
            }
        }