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(); }
private void Setup() { _insertCommand = new RelayCommand(Insert); _refreshCommand = new RelayCommand(Load); _chooseCommand = new RelayCommand<Event>(Choose); _newItem = new NewItemViewModel(Insert); BusyViewModel = BusyViewModel.Instance(); }