Пример #1
0
 public FileViewModel(ISettingsRepository settings, ProgressTracker tracker, IPropertyChangedInvoke invoker)
     : this()
 {
     Settings = settings;
     ProgressTracker = tracker;
     Invoker = invoker;
 }
Пример #2
0
        public static List<FileViewModel> ToModelList(this FileList @this, IPropertyChangedInvoke invoker, ISettingsRepository settings, ProgressTracker tracker)
        {
            if (@this == null || @this.files == null)
                return new List<FileViewModel>();

            return @this.files.Select(x => new FileViewModel(settings, tracker, invoker) { File = x.ToModel() }).ToList();
        }
Пример #3
0
        public MainViewModel(IPropertyChangedInvoke invokeDelegate)
            : this()
        {
            Invoker = invokeDelegate;

            Tracker = new ProgressTracker();
            Tracker.OnProgressChanged += Tracker_OnProgressChanged;

            Settings = new SettingsRepository(IsolatedStorageSettings.ApplicationSettings);

            _fileCollection = new FileCollectionViewModel(Tracker, Settings, Invoker);
            _transferCollection = new TransferCollectionViewModel(Tracker, Settings, Invoker);

            ValidateKey();

            Setup();
        }
Пример #4
0
 private void ViewModel_OnOpenFilePopup(FileViewModel file, ProgressTracker tracker)
 {
     var videoFilePopup = new VideoFilePopup(file);
     SetupPopup(videoFilePopup);
 }
 public TransferCollectionViewModel(ProgressTracker tracker, ISettingsRepository settings, IPropertyChangedInvoke invoker)
     : base(invoker)
 {
     ProgressTracker = tracker;
     Settings = settings;
 }