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; }
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; }