protected ModifiedEventArgs(int modificationType) { _modificationType = modificationType; _undoRedoFlags = new UndoRedoFlags(modificationType); // Ah yes more magic numbers. I'g going to get these refactored someday... _isUserChange = (modificationType & 0x10) != 0; _startAction = (modificationType & 0x2000) != 0; }
public ModifiedEventArgs(int modificationType) { _modificationType = modificationType; _undoRedoFlags = new UndoRedoFlags(modificationType); }
public override string ToString() { return(string.Format(STRING_FORMAT, ModificationType, _position, _length, _linesAddedCount, _text, _isUserChange, _markerChangedLine) + Environment.NewLine + UndoRedoFlags.ToString()); }