Exemple #1
0
 public ComboScoreControl()
 {
     InitializeComponent();
     feedbackControl = new VisualFeedbackControl
     {
         Height = 80,
         Left   = 1000,
         Top    = 180,
         Width  = 500
     };
     Controls.Add(feedbackControl);
     feedbackControl.FinishSetup();
 }
Exemple #2
0
        public punch_count()
        {
            bellRung  = new SoundPlayer(@"soundEffect\old-fashioned-bell.wav");
            missedHit = new SoundPlayer(@"soundEffect\MissedHit.wav");
            InitializeComponent();

            feedbackControl = new VisualFeedbackControl();

            feedbackControl.Left   = 100;
            feedbackControl.Top    = 10;
            feedbackControl.Height = 50;
            feedbackControl.Width  = 400;
            Controls.Add(feedbackControl);
            feedbackControl.FinishSetup();
            Header.Left = tableLayoutPanel1.Left + ((tableLayoutPanel1.Width - Header.Width) / 2);
        }