コード例 #1
0
        public static void EditGame(Window owner, Game game)
        {
            EditGameWindow window = new EditGameWindow
            {
                Owner       = owner,
                DataContext = game
            };

            window.ShowDialog();
        }
コード例 #2
0
        private void EditGame()
        {
            bool canEdit = true;

            if (Score.LockResults)
            {
                canEdit = WindowsAuthentication.Authenticate("Results are Locked. Authenticate to Continue.", true);
            }

            if (canEdit && _gamesListView.SelectedItem != null)
            {
                Game game = (Game)_gamesListView.SelectedItem;
                EditGameWindow.EditGame(this, game);
                Score.Tourney.ApplyGame(game);
                game.LogEvent("Edit Game");
            }
        }