public void ViewArena()
 {
     if (ArenaSession == null)
     {
         return;
     }
     ArenaViewModel.Load(ArenaSession);
 }
示例#2
0
 public void ViewArena()
 {
     if (ArenaSession == null)
     {
         return;
     }
     IsOpen = false;
     // events.PublishOnUIThread(new SelectedArenaSessionChanged(this, ArenaSession.Id));
     ArenaViewModel.Load(ArenaSession);
 }
示例#3
0
        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;
                }
            }
        }