상속: ViewModel
예제 #1
0
        private void Setup()
        {
            _loadVotesCommand = new RelayCommand(LoadVotes);
            _newItem = new NewItemViewModel(Insert);

            var dataTransferManager = Windows.ApplicationModel.DataTransfer.DataTransferManager.GetForCurrentView();
            dataTransferManager.DataRequested += dataTransferManager_DataRequested;

            this.BusyViewModel = BusyViewModel.Instance();
        }
예제 #2
0
        private void Setup()
        {
            _insertCommand = new RelayCommand(Insert);
            _refreshCommand = new RelayCommand(Load);
            _chooseCommand = new RelayCommand<Event>(Choose);

            _newItem = new NewItemViewModel(Insert);

            BusyViewModel = BusyViewModel.Instance();
        }