/// <summary> /// Чтобы расставить шашки, есть только один путь. /// </summary> /// <param name="x">Координата шашки (колонка).</param> /// <param name="y">Координата (строка).</param> /// <returns>Созданная и расставленная шашка.</returns> public CellPlate CreateCell(int x, int y) { if (this[x, y] != null) { throw new ArgumentException("Cell at this point is already present."); } CellPlate result = new CellPlate(this, x, y); internalPlateArray[y * Width + x] = result; result.Invalidate(); return(result); }
/// <summary> /// Чтобы расставить шашки, есть только один путь. /// </summary> /// <param name="x">Координата шашки (колонка).</param> /// <param name="y">Координата (строка).</param> /// <returns>Созданная и расставленная шашка.</returns> public CellPlate CreateCell(int x, int y) { if (this[x, y] != null) throw new ArgumentException("Cell at this point is already present."); CellPlate result = new CellPlate(this, x, y); internalPlateArray[y*Width + x] = result; result.Invalidate(); return result; }