12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using PDF_Office.Model.CloudDrive;
- using PDF_Office.ViewModels.HomePanel.CloudDrive;
- using PDF_Office.ViewModels.HomePanel.CloudDrive.CloudDriveType;
- using Prism.Commands;
- using Prism.Mvvm;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PDF_Office.ViewModels.HomePanel
- {
- public class HomeCloudContentViewModel:BindableBase
- {
- // public GoogleDriveManager googleDriveManager;
-
- public DelegateCommand<CloudDriveItem> OpenCloudDriveCommand { get; set; }
- public HomeCloudContentViewModel()
- {
- // googleDriveManager = new GoogleDriveManager();
- OpenCloudDriveCommand = new DelegateCommand<CloudDriveItem>(OpenCloudDrive_Click);
- }
- public void OpenCloudDrive_Click(CloudDriveItem cloudDiskItem)
- {
- if (cloudDiskItem != null)
- {
- switch (cloudDiskItem.CloudDiskType)
- {
- case CloudType.Box:
- break;
- case CloudType.DropBox:
- break;
- case CloudType.GoogleDrive:
- // isSccuess = await googleDriveViewModel.LoginUser();
- break;
- case CloudType.OneDrive:
- break;
- default:
- break;
- }
- }
- }
- }
- }
|