public DropBoxDownloadViewModel(ModelItem modelItem, IDropboxSourceManager sourceManager) : base(modelItem, "File Or Folder", String.Empty) { _sourceManager = sourceManager; EditDropboxSourceCommand = new RelayCommand(o => EditDropBoxSource(), p => IsDropboxSourceSelected); NewSourceCommand = new Microsoft.Practices.Prism.Commands.DelegateCommand(CreateOAuthSource); // ReSharper disable once VirtualMemberCallInContructor Sources = LoadOAuthSources(); AddTitleBarLargeToggle(); EditDropboxSourceCommand.RaiseCanExecuteChanged(); HelpText = Warewolf.Studio.Resources.Languages.HelpText.Tool_Dropbox_Download; }
public DropBoxFileListDesignerViewModel(ModelItem modelItem, IDropboxSourceManager sourceManager) : base(modelItem) { _sourceManager = sourceManager; EditDropboxSourceCommand = new RelayCommand(o => EditDropBoxSource(), p => IsDropboxSourceSelected); NewSourceCommand = new Microsoft.Practices.Prism.Commands.DelegateCommand(CreateOAuthSource); Sources = LoadOAuthSources(); AddTitleBarLargeToggle(); EditDropboxSourceCommand.RaiseCanExecuteChanged(); IsFilesSelected = true; IncludeDeleted = false; IsRecursive = false; IncludeMediaInfo = false; HelpText = Warewolf.Studio.Resources.Languages.HelpText.Tool_Dropbox_List_Contents; }