Channel9Downloader.ViewModels.Framework.SimpleViewModel.SimpleViewModel C# (CSharp) Method

SimpleViewModel() protected method

Initializes a new instance of the SimpleViewModel class. Wires up all the Window based Lifetime commands.
protected SimpleViewModel ( ) : System
return System
        protected SimpleViewModel()
        {
            _activatedCommand = new RelayCommand(p => OnWindowActivated());
            _deactivatedCommand = new RelayCommand(p => OnWindowDeactivated());
            _loadedCommand = new RelayCommand(p => OnWindowLoaded());
            _unloadedCommand = new RelayCommand(p => OnWindowUnloaded());
            _closeCommand = new RelayCommand(p => OnWindowClose());
        }