HomeCloudContent.xaml.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using PDF_Office.ViewModels.HomePanel.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
  17. {
  18. /// <summary>
  19. /// HomeCloudContent.xaml 的交互逻辑
  20. /// </summary>
  21. public partial class HomeCloudContent : UserControl
  22. {
  23. public HomeCloudContent()
  24. {
  25. InitializeComponent();
  26. this.Loaded += HomeCloudContent_Loaded;
  27. }
  28. private void HomeCloudContent_Loaded(object sender, RoutedEventArgs e)
  29. {
  30. var cloudDrives = cloudFilesContent.DataContext as CloudFilesContentViewModel;
  31. if (cloudDrives != null)
  32. {
  33. cloudDrives.CheckDriveUsersCommand.Execute();
  34. }
  35. }
  36. private void cloudDiskContent_OpenCloudDriveHandler(object sender, bool e)
  37. {
  38. if(e)
  39. {
  40. cloudDriveContent.Visibility = Visibility.Collapsed;
  41. cloudFilesContent.Visibility = Visibility.Visible;
  42. }
  43. }
  44. private void LoadCloudDrive()
  45. {
  46. }
  47. }
  48. }