private void nextBlock()
 {
     saveShapes();
     checkBlocks();
     saveShapes();
     //CURRENT_TYPE = ShapeFactory.GetRandomNr(1, 6);
     CURRENT_TYPE = NEXT_TYPE;
     NEXT_TYPE    = ShapeFactory.GetRandomNr(1, 6);
     setNextShape();
     createShape();
     dispatchTimer.Start();
 }
 public MainWindow()
 {
     dispatchTimer.Tick    += new EventHandler(dispatchTimer_tick);
     dispatchTimer.Interval = new TimeSpan(0, 0, 0, 0, 300);
     currentBlocks          = new List <Block>();
     setBlockCoords         = new List <Point>();
     currentBlockCoords     = new List <Point>();
     setBlocks = new List <Block>();
     InitializeComponent();
     CURRENT_TYPE = ShapeFactory.GetRandomNr(1, 6);
     createShape();
     NEXT_TYPE = ShapeFactory.GetRandomNr(1, 6);
     setNextShape();
     dispatchTimer.Start();
     colCounter = new List <int>();
     PlaySound();
 }