HomeCloudContentViewModel.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using PDF_Master.Model.CloudDrive;
  2. using PDF_Master.ViewModels.HomePanel.CloudDrive;
  3. using PDF_Master.ViewModels.HomePanel.CloudDrive.CloudDriveType;
  4. using Prism.Commands;
  5. using Prism.Mvvm;
  6. using System;
  7. using System.Collections.Generic;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. namespace PDF_Master.ViewModels.HomePanel
  12. {
  13. public class HomeCloudContentViewModel:BindableBase
  14. {
  15. public DelegateCommand<CloudBoxItem> OpenCloudDriveCommand { get; set; }
  16. public HomeCloudContentViewModel()
  17. {
  18. OpenCloudDriveCommand = new DelegateCommand<CloudBoxItem>(OpenCloudDrive_Click);
  19. }
  20. public void OpenCloudDrive_Click(CloudBoxItem cloudDiskItem)
  21. {
  22. if (cloudDiskItem != null)
  23. {
  24. switch (cloudDiskItem.CloudDiskType)
  25. {
  26. case CloudType.Box:
  27. break;
  28. case CloudType.DropBox:
  29. break;
  30. case CloudType.GoogleDrive:
  31. break;
  32. case CloudType.OneDrive:
  33. break;
  34. default:
  35. break;
  36. }
  37. }
  38. }
  39. }
  40. }