123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- using PDF_Office.Model.CloudDrive;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Navigation;
- using System.Windows.Shapes;
- namespace PDF_Office.Views.HomePanel.CloudDrive
- {
- /// <summary>
- /// CloudDriveContent.xaml 的交互逻辑
- /// </summary>
- public partial class CloudDriveContent : UserControl
- {
- private List<CloudDriveItem> CloudeDrives = new List<CloudDriveItem>();
- public CloudDriveContent()
- {
- InitializeComponent();
- InitCloudDrive();
- }
- private void InitCloudDrive()
- {
- var cloudDriveItem = new CloudDriveItem(CloudType.Box);
- CloudeDrives.Add(cloudDriveItem);
- cloudDriveItem = new CloudDriveItem(CloudType.DropBox);
- CloudeDrives.Add(cloudDriveItem);
- cloudDriveItem = new CloudDriveItem(CloudType.GoogleDrive);
- CloudeDrives.Add(cloudDriveItem);
- cloudDriveItem = new CloudDriveItem(CloudType.OneDrive);
- CloudeDrives.Add(cloudDriveItem);
- ListCloudDrive.ItemsSource = CloudeDrives;
- combCloudDrive.ItemsSource = CloudeDrives;
- combCloudDrive.SelectedIndex = 0;
- }
- private void SelectCloudDrive_Click(object sender, MouseButtonEventArgs e)
- {
- }
- }
- }
|