public static Card ToCard(this WebCard card) { if (card == null) { return(null); } return(Card.Retrieve(card.IdCard)); }
public TVCardViewModel(WebCard card) { CardId = card.Id; Name = card.Name; IsActive = false; State = FormStrings.StateIdle; GrabbingEPG = false; Scrambled = false; ChannelId = 0; }
public TVCardViewModel(WebCard card, WebVirtualCard activeCard) : this(card) { IsActive = true; VirtualCard = activeCard; GrabbingEPG = activeCard.IsGrabbingEpg; Scrambled = activeCard.IsScrambled; Username = activeCard.User.Name; ChannelId = activeCard.ChannelId; if (activeCard.IsTimeShifting) { State = FormStrings.StateTimeshifting; } if (activeCard.IsRecording) { State = FormStrings.StateRecording; } if (activeCard.IsScanning) { State = FormStrings.StateScanning; } }