public TaskbarServicesViewModel() { OverlayIcons = new NamedIcon[] { new NamedIcon() { Caption = "Moon", Icon = ImageSourceHelper.GetImageSource(AssemblyHelper.GetResourceUri(typeof(TaskbarServices).Assembly, "Images/Moon.png")) }, new NamedIcon() { Caption = "Sun", Icon = ImageSourceHelper.GetImageSource(AssemblyHelper.GetResourceUri(typeof(TaskbarServices).Assembly, "Images/Sun.png")) } }; ProgressStatesNames = Enum.GetNames(typeof(TaskbarItemProgressState)); ButtonProperties = new ObservableCollection <bool> { true, true, true, false, true }; ButtonProperties.CollectionChanged += ButtonPropertyChanged; }
public NewJumpTaskWindowViewModel() { Icons = new NamedIcon[] { new NamedIcon() { Caption = "Moon", Icon = ImageSourceHelper.GetImageSource(AssemblyHelper.GetResourceUri(typeof(NewJumpTaskWindowViewModel).Assembly, "Images/Moon.png")) }, new NamedIcon() { Caption = "Sun", Icon = ImageSourceHelper.GetImageSource(AssemblyHelper.GetResourceUri(typeof(NewJumpTaskWindowViewModel).Assembly, "Images/Sun.png")) } }; CustomCategory = ""; Title = "Title"; Description = ""; MessageText = "Message"; Icon = Icons.ElementAt(0); }