internal string GetMoveText(MoveId moveId) { string text = ""; if (moveId.IsValid) { text = (string)Grid[moveId.ColumnName, moveId.Row].Value; } return(text); }
internal MoveId GetCurrentMove() { MoveId moveId = new MoveId(Grid.CurrentCell.RowIndex, Grid.CurrentCell.ColumnIndex); if ((moveId.Move == LastCurrentMove.Move) && (moveId.Color == LastCurrentMove.Color)) { moveId.Position = LastCurrentMove.Position; } return(moveId); }
internal void SetCurrentMove(MoveId moveId) { if (moveId.IsValid) { Grid.CurrentCell = Grid[moveId.ColumnName, moveId.Row]; LastCurrentMove = moveId.ShallowCopy(); } else { IntInterface.CallBack.Panic("SetCurrentMove invalid moveId=" + moveId.ToString()); } }
internal void SetMoveText(MoveId moveId, string value) { if (moveId.Move < 1) { IntInterface.CallBack.Panic("Invalid row index : " + moveId.Move); } while (moveId.Move > Count) { AddRow(BlankTableEntry, BlankTableEntry); } Grid[moveId.ColumnName, moveId.Row].Value = value; }
// // Move Callbacks // public virtual void MoveSelect(MoveId moveId) { Trace("CallBack MoveSelect moveId=" + moveId.ToString()); }