Example #1
0
        internal string GetMoveText(MoveId moveId)
        {
            string text = "";

            if (moveId.IsValid)
            {
                text = (string)Grid[moveId.ColumnName, moveId.Row].Value;
            }
            return(text);
        }
Example #2
0
        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);
        }
Example #3
0
 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());
     }
 }
Example #4
0
 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;
 }
Example #5
0
 //
 // Move Callbacks
 //
 public virtual void MoveSelect(MoveId moveId)
 {
     Trace("CallBack MoveSelect moveId=" + moveId.ToString());
 }