Пример #1
0
        private void window_Loaded(object sender, RoutedEventArgs e)
        {
            Grid2.Children.Add(tetris.CreateGrid());

            Grid2.Children.Add(tetris.CreateRod(126, 22, 0, 0, 4, 620));
            Grid2.Children.Add(tetris.CreateRod(450, 22, 0, 0, 4, 620));
            Grid2.Children.Add(tetris.CreateRod(126, 17, 0, 0, 328, 5));
            Grid2.Children.Add(tetris.CreateRod(126, 642, 0, 0, 328, 5)); // Grid çubuk görseli

            Grid2.Children.Add(tetris.CreateNextImage());

            normalDown.Interval = TimeSpan.FromMilliseconds(düsmehizi);
            normalDown.Start();
            normalDown.Tick += new EventHandler(normalDown_Tick);

            speedDown.Interval = TimeSpan.FromMilliseconds(düsmehizi - 50);
            speedDown.Stop();
            speedDown.Tick += new EventHandler(speedDown_Tick);
        }