Exemplo n.º 1
0
        private void UpdateCastles(CastlesModel castle)
        {
            var index = Castles.IndexOf(castle);

            Castles.Remove(castle);
            Castles.Insert(index, castle);
        }
Exemplo n.º 2
0
 public void HideOrShowCastles(CastlesModel castle)
 {
     if (_oldCastle == castle)
     {
         castle.IsVisible = !castle.IsVisible;
         UpdateCastles(castle);
     }
     else
     {
         if (_oldCastle != null)
         {
             _oldCastle.IsVisible = false;
             UpdateCastles(_oldCastle);
         }
         castle.IsVisible = true;
         UpdateCastles(castle);
     }
     _oldCastle = castle;
 }
Exemplo n.º 3
0
 public void FillCommandGPS(CastlesModel castle)
 {
     selectionChangedCommandParameter = castle;
 }