Exemple #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);
 }
Exemple #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()));
        }
Exemple #3
0
 internal virtual void setActualColumn(Column column)
 {
     actualColumn = column;
 }
Exemple #4
0
 /// <summary>
 /// Ajouter une colonne au board
 /// </summary>
 /// <param name="column"></param>
 public virtual void AddColumn(Column column)
 {
     columns.Add(column);
 }
Exemple #5
0
 /// <summary>
 /// Retirer une colonne au board
 /// </summary>
 /// <param name="column"></param>
 public virtual void RemoveColumn(Column column)
 {
     columns.Remove(column);
 }
Exemple #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);
 }
Exemple #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);
 }