Пример #1
0
 public string ToString(Sale sale, CardStatus cardStatus)
 {
     return("Номер карты: " + this.cardId + "\n" +
            "Остаток: " + this.cardCount + "\n" +
            "Тариф: " + sale.saleValue + "%\n" +
            "Статус: " + cardStatus.status_message + "\n" +
            "Количество бонусов: " + this.cardBonus + "\n" +
            "Количество билетов: " + this.cardTicket + "\n" +
            "ФИО родителя: " + this.cardParentName + "\n" +
            "Дата регистрации карты:\n " + this.cardRegDate);
 }
Пример #2
0
        public string ToString(StartInfo startInfo)
        {
            Sale       sale   = startInfo.sales.Find(x => x.saleId == this.cardSale);
            CardStatus status = startInfo.cardStatuses.Find(x => x.status_id == this.cardStatus);

            return("Номер карты: " + this.cardId + "\n" +
                   "Остаток: " + this.cardCount + "\n" +
                   "Тариф: " + sale.saleValue + "%\n" +
                   "Роль: " + this.cardRole + "\n" +
                   "Статус: " + status.status_message + "\n" +
                   "Количество бонусов: " + this.cardBonus + "\n" +
                   "Количество билетов: " + this.cardTicket + "\n" +
                   "ФИО родителя: " + this.cardParentName + "\n" +
                   "Дата регистрации карты:\n " + this.cardRegDate);
        }