Exemple #1
0
        private async void LoadFrom(string data)
        {
            if (!boardService.LoadFrom(data))
            {
                var dialog = new MessageDialog("Could not load PGN/FEN. The content is invalid or not supported.");
                dialog.Commands.Add(new UICommand {
                    Label = "OK", Id = 0
                });
                await dialog.ShowAsync();

                return;
            }

            BoardViewModel.RefreshSquares();
            NotationViewModel.ReloadMoves();
        }
Exemple #2
0
 public void ReloadBoard(SideColor changedPerspectiveColor)
 {
     BoardViewModel.RefreshBoard(changedPerspectiveColor);
     NotationViewModel.ReloadMoves();
 }