private void FinalizeControls() { Tetris?.Dispose(); Tetris = null; PrevFigureSet = 0; PrevColorSet = 0; this.InvalidateMeasure(); }