Пример #1
0
 public virtual void MoveTo(Column column)
 {
     // Si la carte est est déjà posée sur une colonne on la retire
     if (actualColumn != null)
     {
         actualColumn.RemoveCard(this);
     }
     column.AddCard(this);
 }
Пример #2
0
        public void AddCardToAColumn()
        {
            Column column = new Column();
            Card card = new Card();
            column.AddCard(card);

            Assert.IsTrue(column.getCards().Contains(card));
            Assert.IsTrue(column.Equals(card.getActualColumn()));
        }
Пример #3
0
 internal virtual void setActualColumn(Column column)
 {
     actualColumn = column;
 }
Пример #4
0
 /// <summary>
 /// Ajouter une colonne au board
 /// </summary>
 /// <param name="column"></param>
 public virtual void AddColumn(Column column)
 {
     columns.Add(column);
 }
Пример #5
0
 /// <summary>
 /// Retirer une colonne au board
 /// </summary>
 /// <param name="column"></param>
 public virtual void RemoveColumn(Column column)
 {
     columns.Remove(column);
 }
Пример #6
0
 /// <summary>
 /// Retire la carte "card" de la colonne "column"
 /// </summary>
 /// <param name="card"></param>
 /// <param name="column"></param>
 public void RemoveCardFromColumn(Card card, Column column)
 {
     column.RemoveCard(card);
 }
Пример #7
0
 /// <summary>
 /// Ajoute la carte "card" à la colonne "column"
 /// </summary>
 /// <param name="card"></param>
 /// <param name="column"></param>
 public void PutCardOnColumn(Card card, Column column)
 {
     card.MoveTo(column);
 }