Пример #1
0
        public MainViewModel()
        {
            _undoMementos = new Stack <IMemento>();
            _redoMementos = new Stack <IMemento>();

            Guests = new GuestsViewModel();

            Name    = "Ash Williams";
            Company = "S-Mart";

            _addGuestCommand = new RelayCommand(
                AddGuest,
                CanAddGuest
                );

            _undoCommand = new RelayCommand(
                Undo,
                CanUndo
                );

            _redoCommand = new RelayCommand(
                Redo,
                CanRedo
                );
        }
        public MainViewModel()
        {
            Guests = new GuestsViewModel();

            Name    = "Ash Williams";
            Company = "S-Mart";

            _addGuestCommand = new RelayCommand(
                AddGuest,
                CanAddGuest
                );

            _undoCommand = new RelayCommand(
                Undo,
                CanUndo
                );
        }