public OverlayEndCreditsSectionItemViewModel(OverlayEndCreditsItemViewModel container, OverlayEndCreditsSectionModel section)
     : this(container)
 {
     this.SectionType = section.SectionType;
     this.SectionHTML = section.SectionHTML;
     this.UserHTML    = section.UserHTML;
 }
예제 #2
0
 private OverlayEndCreditsSectionItemViewModel(OverlayEndCreditsItemViewModel container)
 {
     this.container         = container;
     this.DeleteItemCommand = this.CreateCommand(() =>
     {
         this.container.DeleteItem(this);
     });
 }
 private OverlayEndCreditsSectionItemViewModel(OverlayEndCreditsItemViewModel container)
 {
     this.container         = container;
     this.DeleteItemCommand = this.CreateCommand((parameter) =>
     {
         this.container.DeleteItem(this);
         return(Task.FromResult(0));
     });
 }
 public OverlayEndCreditsSectionItemViewModel(OverlayEndCreditsItemViewModel container, OverlayEndCreditsSectionTypeEnum sectionType)
     : this(container)
 {
     this.SectionType = sectionType;
     this.SectionHTML = OverlayEndCreditsItemModel.SectionHTMLTemplate;
     if (sectionType == OverlayEndCreditsSectionTypeEnum.Chatters || sectionType == OverlayEndCreditsSectionTypeEnum.Followers ||
         sectionType == OverlayEndCreditsSectionTypeEnum.Hosts || sectionType == OverlayEndCreditsSectionTypeEnum.NewSubscribers ||
         sectionType == OverlayEndCreditsSectionTypeEnum.Subscribers || sectionType == OverlayEndCreditsSectionTypeEnum.Moderators)
     {
         this.UserHTML = OverlayEndCreditsItemModel.UserHTMLTemplate;
     }
     else if (sectionType == OverlayEndCreditsSectionTypeEnum.FreeFormHTML || sectionType == OverlayEndCreditsSectionTypeEnum.FreeFormHTML2 ||
              sectionType == OverlayEndCreditsSectionTypeEnum.FreeFormHTML3)
     {
         this.SectionHTML = OverlayEndCreditsItemModel.FreeFormSectionHTMLTemplate;
         this.UserHTML    = OverlayEndCreditsItemModel.FreeFormUserHTMLTemplate;
     }
     else
     {
         this.UserHTML = OverlayEndCreditsItemModel.UserDetailsHTMLTemplate;
     }
 }