Ejemplo n.º 1
0
 public void Initialize(ListBoxInfoReporter infoReporter)
 {
     InfoReporter         = infoReporter;
     SaveSettings         = new RelayCommand(() => SaveSettingsImpl(false));
     SetIconTree          = new RelayCommand(() => RunCommand(FolderIconCommand.SetIconTree), () => this.MayRunCommand);
     SetIconsAuto         = new RelayCommand(() => RunCommand(FolderIconCommand.SetIconsAuto), () => this.MayRunCommand);
     ApplyFolderIcons     = new RelayCommand(() => RunCommand(FolderIconCommand.ApplyFolderIcons), () => this.MayRunCommand);
     GenerateSidecarFiles = new RelayCommand(() => RunCommand(FolderIconCommand.GenerateSidecarFiles), () => this.MayRunCommand);
     FixAttributes        = new RelayCommand(() => RunCommand(FolderIconCommand.FixAttributes), () => this.MayRunCommand);
     SaveIconToSidecar    = new RelayCommand(SaveIconToSidecarImpl, () => this.MayRunCommand);
     OnPropertyChanged(nameof(MayRunCommand));
 }
Ejemplo n.º 2
0
 public void Initialize(ListBoxInfoReporter infoReporter)
 {
     InfoReporter         = infoReporter;
     OpenFavorite         = new RelayCommand <FavoritePath>(OpenFavoriteImpl);
     EditFavorite         = new RelayCommand <FavoritePath>(EditFavoriteImpl);
     DeleteFavorite       = new RelayCommand <FavoritePath>(DeleteFavoriteImpl);
     AddFavorite          = new RelayCommand <FavoritePathType?>(AddFavoriteImpl);
     SaveSettings         = new RelayCommand(() => SaveSettingsImpl());
     ResetCaches          = new RelayCommand(ResetCachesImpl);
     SetIconTree          = new RelayCommand(() => RunCommand(FolderIconCommand.SetIconTree), () => MayRunCommand);
     SetIconsAuto         = new RelayCommand(() => RunCommand(FolderIconCommand.SetIconsAuto), () => MayRunCommand);
     ApplyFolderIcons     = new RelayCommand(() => RunCommand(FolderIconCommand.ApplyFolderIcons), () => MayRunCommand);
     GenerateSidecarFiles = new RelayCommand(() => RunCommand(FolderIconCommand.GenerateSidecarFiles), () => MayRunCommand);
     FixAttributes        = new RelayCommand(() => RunCommand(FolderIconCommand.FixAttributes), () => MayRunCommand);
     SaveIconToSidecar    = new RelayCommand(SaveIconToSidecarImpl, () => MayRunCommand);
     OnPropertyChanged(nameof(MayRunCommand));
 }