예제 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ScoreSheet = ((farkle.Scoring)(target));
                return;

            case 2:
                this.lblScoring1 = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.lblScoring2 = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.lblScoring3 = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.lblScoring5 = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.lblScoring4 = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.lblScoring6 = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.lblScoring7 = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.lblScoring8 = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.lblScoring9 = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.lblScoring10 = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.lblThreePair = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.lblRun = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #2
0
        /// <summary>
        /// Scoring button click event.
        /// </summary>
        /// <param name="sender">The sender object.</param>
        /// <param name="e">RoutedEventArgs e.</param>
        private void BtnScoring_Click(object sender, RoutedEventArgs e)
        {
            Scoring scoringLegend = new Scoring();

            scoringLegend.Show();
        }