コード例 #1
0
        private int _playerScore = 0;                         //Zusätliches Attribut

        public frmField()
        {
            InitializeComponent();

            _scoreListPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "scorelist.txt");

            _optionsForm   = new frmOptions();
            _editScoreForm = new frmEditScore(_scoreListPath);
            _scoreListForm = new frmScoreList(_scoreListPath);

            _boxList    = new List <Button>();
            _boxRatings = new Dictionary <Color, int>();

            _scoreListForm.RefreshScore();

            _optionsForm.VisibleChanged += BtnHideOptions_Click;
            SetupPlayField();
        }