Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 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);
 }