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