public void PushNewCommand(HistoryMemento value)
 {
     ClearRedoStack();
     undoStack.Add(value);
     OnHistoryChanged();
 }