private async void UpdateAppState(HappaState state) { this.AppState = state; await this.dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { this.vm.UpdateState(state); }); }
public void UpdateState(HappaState state) { this.State = state.ToString(); this.AvailableCommands = this.stateDictionary[state]; }