Пример #1
0
        /// <summary>
        /// Handles the Click event of the nehézToolStripMenuItem control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        private void nehézToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // Set the difficulty to hard.
            uy    = ClientRectangle.Height - uysize;
            mehet = false;
            int temp = ball.Count;

            if (temp <= 0)
            {
                init_labda l2 = new init_labda(60, 60, 10, 10, 20, 40, Brushes.Red, Pens.Black);
                ball.Add(l2);
            }
            else
            {
                ball.Clear();
                init_labda l2 = new init_labda(60, 60, 10, 10, 20, 40, Brushes.Red, Pens.Black);
                ball.Add(l2);
            }

            TeglatKirajzol();
            timer1.Enabled = true;
            hiba           = 3;
        }
Пример #2
0
        /// <summary>
        /// Handles the Click event of the nehézToolStripMenuItem control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        private void nehézToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // Set the difficulty to hard.
            uy = ClientRectangle.Height - uysize;
            mehet = false;
            int temp = ball.Count;

            if (temp <= 0)
            {
                init_labda l2 = new init_labda(60, 60, 10, 10, 20, 40, Brushes.Red, Pens.Black);
                ball.Add(l2);
            }
            else
            {
                ball.Clear();
                init_labda l2 = new init_labda(60, 60, 10, 10, 20, 40, Brushes.Red, Pens.Black);
                ball.Add(l2);
            }

            TeglatKirajzol();
            timer1.Enabled = true;
            hiba = 3;
        }