private async void Download(MainWindowDownloadMessage message)
        {
            if (SelectedRow != null)
            {
                DispatcherHelper.CheckBeginInvokeOnUI(() => IsBusy = true);

                IShelveset shelveset = SelectedRow.ToShelveset();
                int        fileCount = await Task.Run(() => _backupService.DownloadShelveset(message.DestinationFolder, new[] { shelveset }));

                DispatcherHelper.CheckBeginInvokeOnUI(() => IsBusy = false);
            }
        }
Example #2
0
 public void Shelve(IShelveset shelveset, IPendingChange[] changes, TfsShelvingOptions options)
 {
     throw new NotImplementedException();
 }
Example #3
0
 public void Shelve(IShelveset shelveset, IPendingChange[] changes, TfsShelvingOptions options)
 {
     _workspace.Shelve(_bridge.Unwrap <Shelveset>(shelveset), _bridge.Unwrap <PendingChange>(changes), _bridge.Convert <ShelvingOptions>(options));
 }
Example #4
0
 public void Shelve(IShelveset shelveset, IPendingChange[] changes, TfsShelvingOptions options)
 {
     throw new NotImplementedException();
 }
Example #5
0
 public Shelveset Unwrap(IShelveset shelveset)
 {
     return WrapperFor<Shelveset>.Unwrap(shelveset);
 }
 public MainRowViewModel(IShelveset shelveset)
 {
     _shelveset = shelveset;
 }