public void AddNode(Point pos, string text) { NewOperation(); var add = ComCreateNode.SetCommand(this, pos, text); add.Execute(); history.Add(add); }
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); }