Exemplo n.º 1
0
        protected override object DropItem(object droppedItem, DropContext context)
        {
            if (droppedItem is AvailableGameViewModel)
            {
                droppedItem = new ArenaGameViewModel(droppedItem as AvailableGameViewModel, _parentCollection);
            }

            return(base.DropItem(droppedItem, context));
        }
Exemplo n.º 2
0
        public void Activate(ArenaGameViewModel gameToSelect)
        {
            Activate();

            if (gameToSelect != null)
            {
                SelectedGame = gameToSelect;
            }
        }
Exemplo n.º 3
0
 public void NavigateTo(ArenaLayoutViewModel arenaLayout, ArenaGameViewModel game)
 {
     ServiceLocator.GetInstance <ISkinDesigner>().NavigateToWorkspace(this);
     arenaLayout.Activate(game);
 }
Exemplo n.º 4
0
 private void NavigateToArena(ArenaViewModel arena, ArenaLayoutViewModel arenaLayout, ArenaGameViewModel game)
 {
     arena.NavigateTo(arenaLayout, game);
 }
Exemplo n.º 5
0
 void IArenaLayoutViewModel.NavigateToGame(ArenaGameViewModel game)
 {
     _arena.NavigateTo(this, game);
 }