Beispiel #1
0
        public void Execute()
        {
            string code = Clipboard.GetText();

            try
            {
                IEnumerable <Track> tracks = _trackCodec.Decode(code);

                _gameBoard.LoadTracks(tracks);
            }
            catch (FormatException ex)
            {
                MessageBox.Show("An error occurred reading the code on the clipboard:\n\n" + ex.Message);
            }
        }