private void OnMoveUndo(object obj) { if (MovesMade.Count > 0) { MovesMade.RemoveAt(MovesMade.Count - 1); } }
public void MyFunc() { MovesMade movesMade = new MovesMade(); movesMade.Peep = Player.Me; AlllMoves.Add(movesMade); if (movesMade.Peep == Player.Me) { } }
private void OnPieceMoved(Infrastructure.Events.Move obj) { MovesMade.Add(obj); }