예제 #1
0
 public OverlayWidgetModel(string name, string overlayName, OverlayItemModelBase item, int refreshTime)
 {
     this.Name        = name;
     this.OverlayName = overlayName;
     this.Item        = item;
     this.RefreshTime = refreshTime;
     this.IsEnabled   = true;
 }
예제 #2
0
        public OverlayWidgetModel(string name, string overlayName, OverlayItemModelBase item, int refreshTime)
        {
            this.Name = name;
            var overlays = ChannelSession.Services.Overlay.GetOverlayNames();

            if (overlays.Contains(overlayName))
            {
                this.OverlayName = overlayName;
            }
            else
            {
                this.OverlayName = ChannelSession.Services.Overlay.DefaultOverlayName;
            }
            this.Item        = item;
            this.RefreshTime = refreshTime;
            this.IsEnabled   = true;
        }