CloudFilesContent.xaml.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using PDF_Office.Model.CloudDrive;
  2. using PDF_Office.ViewModels.HomePanel.CloudDrive;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using System.Windows;
  9. using System.Windows.Controls;
  10. using System.Windows.Data;
  11. using System.Windows.Documents;
  12. using System.Windows.Input;
  13. using System.Windows.Media;
  14. using System.Windows.Media.Imaging;
  15. using System.Windows.Navigation;
  16. using System.Windows.Shapes;
  17. namespace PDF_Office.Views.HomePanel.CloudDocs
  18. {
  19. /// <summary>
  20. /// CloudFilesContent.xaml 的交互逻辑
  21. /// </summary>
  22. public partial class CloudFilesContent : UserControl
  23. {
  24. private List<string> list = new List<string>();
  25. private GoogleDriveViewModel GoogleDrive = new GoogleDriveViewModel();
  26. private CloudType cloudType;
  27. public CloudFilesContent()
  28. {
  29. InitializeComponent();
  30. list.Add("Box");
  31. list.Add("DropBox");
  32. list.Add("GoogleDrive");
  33. list.Add("OneDrive");
  34. ListFolder.ItemsSource = list;
  35. // Listusers.ItemsSource = list;
  36. // combCloudDisk.ItemsSource = list;
  37. // ListvmFiles.ItemsSource = list;
  38. }
  39. public void SelectCloudTye(CloudType cloudType)
  40. {
  41. switch (cloudType)
  42. {
  43. case CloudType.GoogleDrive:
  44. cloudType = CloudType.GoogleDrive;
  45. break;
  46. }
  47. }
  48. private void Button_Click(object sender, RoutedEventArgs e)
  49. {
  50. SelectCloudTye(CloudType.GoogleDrive);
  51. }
  52. }
  53. }