Пример #1
0
 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;
 }
Пример #2
0
 //***************************************************************************
 // Class Constructors
 //
 public UndoState(UndoStateType type, string text, int pos)
     : this(type, type.ToString(), text, string.Empty, pos)
 {
 }
Пример #3
0
 public UndoState(UndoStateType type, string text, string prevText, int pos)
     : this(type, type.ToString(), text, prevText, pos)
 {
 }
Пример #4
0
 //***************************************************************************
 // Public Methods
 //
 public string Add(UndoStateType type, string text, int charPos)
 {
     return(this.Add(new UndoState(type, text, charPos)));
 }