예제 #1
0
 public OverlayTickerTapeListItemModel(string html, int totalToShow, OverlayTickerTapeItemTypeEnum tickerTapeType, double minimumAmountRequiredToShow, string textColor, string textFont,
                                       int width, int height)
     : base(OverlayItemModelTypeEnum.TickerTape, html, totalToShow, 0, textFont, width, height, string.Empty, string.Empty, textColor,
            OverlayListItemAlignmentTypeEnum.None, OverlayItemEffectEntranceAnimationTypeEnum.None, OverlayItemEffectExitAnimationTypeEnum.None)
 {
     this.TickerTapeType = tickerTapeType;
     this.MinimumAmountRequiredToShow = minimumAmountRequiredToShow;
 }
예제 #2
0
        public OverlayTickerTapeListItemViewModel(OverlayTickerTapeListItemModel item)
            : base(item.TotalToShow, item.FadeOut, item.Width, item.Height, item.TextFont, item.TextColor, item.BorderColor, item.BackgroundColor, OverlayListItemAlignmentTypeEnum.None, item.Effects.EntranceAnimation, item.Effects.ExitAnimation, item.HTML)
        {
            this.tickerTapeType = item.TickerTapeType;
            this.minimumAmountRequiredToShow = item.MinimumAmountRequiredToShow;

            this.BackgroundColor = ColorSchemes.HTMLColorSchemeDictionary.First().Key;
            this.BorderColor     = ColorSchemes.HTMLColorSchemeDictionary.First().Key;
        }