Example #1
0
        public void AddNode(Point pos, string text)
        {
            NewOperation();
            var add = ComCreateNode.SetCommand(this, pos, text);

            add.Execute();
            history.Add(add);
        }
Example #2
0
        public static ComCreateNode SetCommand(Graph curgraph, Point pos, string text)
        {
            var tmp = new ComCreateNode();

            tmp._graph = curgraph;
            tmp._pos   = pos;
            tmp._text  = text;
            return(tmp);
        }