CloudDriveContent.xaml.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using PDF_Office.Model.CloudDrive;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. namespace PDF_Office.Views.HomePanel.CloudDrive
  17. {
  18. /// <summary>
  19. /// CloudDriveContent.xaml 的交互逻辑
  20. /// </summary>
  21. public partial class CloudDriveContent : UserControl
  22. {
  23. private List<CloudDriveItem> CloudeDrives = new List<CloudDriveItem>();
  24. public CloudDriveContent()
  25. {
  26. InitializeComponent();
  27. InitCloudDrive();
  28. }
  29. private void InitCloudDrive()
  30. {
  31. var cloudDriveItem = new CloudDriveItem(CloudType.Box);
  32. CloudeDrives.Add(cloudDriveItem);
  33. cloudDriveItem = new CloudDriveItem(CloudType.DropBox);
  34. CloudeDrives.Add(cloudDriveItem);
  35. cloudDriveItem = new CloudDriveItem(CloudType.GoogleDrive);
  36. CloudeDrives.Add(cloudDriveItem);
  37. cloudDriveItem = new CloudDriveItem(CloudType.OneDrive);
  38. CloudeDrives.Add(cloudDriveItem);
  39. ListCloudDrive.ItemsSource = CloudeDrives;
  40. combCloudDrive.ItemsSource = CloudeDrives;
  41. combCloudDrive.SelectedIndex = 0;
  42. }
  43. private void SelectCloudDrive_Click(object sender, MouseButtonEventArgs e)
  44. {
  45. }
  46. }
  47. }