Пример #1
0
 private void initOptions(ref Card[] con)
 {
     for (int i = 0; i < con.Length; i++) {
         con[i] = new Card();
         //con[i].Location = addaptLocation(con[i], i);
         con[i].Font = new Font(this.Font.FontFamily, 12F);
         con[i].Visible = true;
     }
 }
Пример #2
0
 private int cardsCountInForm(Card card)
 {
     return (this.Width / (card.Width + indentX));
 }
Пример #3
0
 private string[] getMindsFromCards(Card[] cards)
 {
     if (cards == null) {
         return null;
     }
     string[] export = new string[cards.Length];
     for (int i = 0; i < cards.Length; i++) {
         export[i] = cards[i].Text;
     }
     return export;
 }
Пример #4
0
 private void addNewCardsToBoard(ref Card[] cards, Card[] newCards)
 {
     for (int i = 0; i < newCards.Length; i++) {
         newCards[i].Font = new Font(newCards[i].Font.FontFamily, 12F);
         newCards[i].Status = Card.Action.Edit;
     }
     List<Card> temp = tasksCards.ToList<Card>();
     temp.AddRange(newCards);
     tasksCards = temp.ToArray();
     cards = cards.Reverse<Card>().ToArray<Card>();
     for (int i = 0; i < cards.Length; i++) {
         //cards[i].Location = addaptLocation(cards[i], i);
     }
     this.workSpaceTableLayoutPanel.Controls.AddRange(cards);
 }