private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            switch (UndoSetting)
            {
            case 0:
                UndoCommand = new UndoSingle(MementoCaretaker);
                break;

            case 1:
                UndoCommand = new UndoAll(MementoCaretaker);
                break;
            }
        }