/// <summary> /// Update the tripple in the field /// </summary> /// <param name="col"></param> /// <param name="row"></param> /// <param name="direction"></param> /// <param name="number"></param> /// <param name="content"></param> /// <param name="source"></param> public void SetTrippleCell(int col, int row, TrippleDirection direction, Byte number, char content, Cell.CellSource source) { Tripple tripple = GetTripple(col, row, direction); tripple.Examine[number].Content = content; tripple.Examine[number].Source = source; }
public Cell SetCell(byte col, byte row, char content, Cell.CellSource source) { Play[col + row * 9].Content = content; Play[col + row * 9].Source = source; History.Add(Play[col + row * 9]); UpdateField(col, row); return(GetCell(col, row)); }
/// <summary> /// Update the cell and save the update /// </summary> /// <param name="col"></param> /// <param name="row"></param> /// <param name="content"></param> /// <param name="source"></param> public Cell SetCell(int col, int row, char content, Cell.CellSource source) { HistoryCell Update = new HistoryCell { Col = col, Row = row, Content = content, Source = source }; int index = Index(col, row); Play[index].Content = content; Play[index].Source = source; History.Add(Update); return(Update); }