Beispiel #1
0
        private void Timer_Tick(object sender, EventArgs e)
        {
            End_game_check?.Invoke();

            if (Game_over == false)
            {
                timerticks = true;
                if (timerticks == true)
                {
                    Move_Figure_down?.Invoke();
                    panel_field.Invalidate();
                    timerticks = false;
                }
            }
            else
            {
                panel_field.Invalidate();
                Load_Panel?.Invoke();
                timer1.Stop();
                panel_field.Invalidate();
                button_start.Enabled = true;
            }
        }
Beispiel #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     Load_Panel?.Invoke();
 }
Beispiel #3
0
 private void Initialize_GameBoy(object sender, EventArgs e) // Initializing form
 {
     Load_Panel?.Invoke();
 }
Beispiel #4
0
 private void Tetris_Load(object sender, EventArgs e)
 {
     Load_Panel?.Invoke();
 }