private void LoadGameResult(GameResultModel game) { EnsureInitialized(); SelectedGame = game; Hero = game.Hero; OpponentHero = game.OpponentHero; StartTime = game.Started; EndTime = game.Stopped; Victory = game.Victory; GoFirst = game.GoFirst; GameMode = game.GameMode; // force notify even if not changed NotifyOfPropertyChange(() => GameMode); Notes = game.Notes; Turns = game.Turns; ArenaSession = game.ArenaSession; LastGameId = game.Id; Conceded = game.Conceded; SelectedServer = servers.FirstOrDefault(x => x.Name == game.Server); if (game.Deck != null) { if (game.Deck.Deleted && Decks.All(x => x.Id != game.Deck.Id)) { var model = game.Deck.ToModel(); model.Name += " (deleted)"; Decks.Insert(0, model); } SelectedDeck = Decks.FirstOrDefault(x => x.Id == game.Deck.Id); } NotifyOfPropertyChange(() => CanSaveAsNew); //Execute.OnUIThread( // () => // { // var v = (UIElement)this.GetView(); // Panel.SetZIndex(v, 10); // }); }