HomeCloudContentViewModel.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using PDF_Office.Model.CloudDrive;
  2. using PDF_Office.ViewModels.HomePanel.CloudDrive;
  3. using PDF_Office.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_Office.ViewModels.HomePanel
  12. {
  13. public class HomeCloudContentViewModel:BindableBase
  14. {
  15. // public GoogleDriveManager googleDriveManager;
  16. public DelegateCommand<CloudDriveItem> OpenCloudDriveCommand { get; set; }
  17. public HomeCloudContentViewModel()
  18. {
  19. // googleDriveManager = new GoogleDriveManager();
  20. OpenCloudDriveCommand = new DelegateCommand<CloudDriveItem>(OpenCloudDrive_Click);
  21. }
  22. public void OpenCloudDrive_Click(CloudDriveItem cloudDiskItem)
  23. {
  24. if (cloudDiskItem != null)
  25. {
  26. switch (cloudDiskItem.CloudDiskType)
  27. {
  28. case CloudType.Box:
  29. break;
  30. case CloudType.DropBox:
  31. break;
  32. case CloudType.GoogleDrive:
  33. // isSccuess = await googleDriveViewModel.LoginUser();
  34. break;
  35. case CloudType.OneDrive:
  36. break;
  37. default:
  38. break;
  39. }
  40. }
  41. }
  42. }
  43. }