public UndoState(UndoStateType type, string name, string text, string prevText, int pos) { this.ID = string.Empty; this.StateType = type; this.Name = name; this.PreviousText = prevText; this.Text = text; this.CharPosition = pos; }
//*************************************************************************** // Class Constructors // public UndoState(UndoStateType type, string text, int pos) : this(type, type.ToString(), text, string.Empty, pos) { }
public UndoState(UndoStateType type, string text, string prevText, int pos) : this(type, type.ToString(), text, prevText, pos) { }
//*************************************************************************** // Public Methods // public string Add(UndoStateType type, string text, int charPos) { return(this.Add(new UndoState(type, text, charPos))); }