public void ViewArena() { if (ArenaSession == null) { return; } ArenaViewModel.Load(ArenaSession); }
public void ViewArena() { if (ArenaSession == null) { return; } IsOpen = false; // events.PublishOnUIThread(new SelectedArenaSessionChanged(this, ArenaSession.Id)); ArenaViewModel.Load(ArenaSession); }
private void OnPropertyChanged(object sender, PropertyChangedEventArgs args) { var not = IsNotifying; if (!PauseNotify.IsPaused(this)) { switch (args.PropertyName) { case "SelectedGame": if (SelectedGame != null) { EditGameViewModel.Load(SelectedGame); } break; case "SelectedArenaSession": if (SelectedArenaSession != null) { ArenaViewModel.Load(SelectedArenaSession); EditGameViewModel.IsOpen = false; } else { ArenaViewModel.IsOpen = false; } break; case "FilterServer": case "FilterHero": case "FilterFromDate": case "FilterToDate": RefreshData(); break; } } }