private void OnFigureChange() { currentFigure = FigureFactory.CreateFigure(FigureFactory.NextFigure()); currentFigure.Xindex = Cols / 2 - 1; currentFigure.Yindex = -2; nextFigure = FigureFactory.CreateFigure(FigureFactory.PeekNextFigure()); }