星火微课系统客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FileDirectoryWindow.xaml.cs 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. using Org.BouncyCastle.Asn1.Crmf;
  2. using System.Collections.Generic;
  3. using System.Windows;
  4. using System.Windows.Input;
  5. using XHWK.Model;
  6. namespace XHWK.WKTool
  7. {
  8. /// <summary>
  9. /// 文件目录
  10. /// </summary>
  11. public partial class FileDirectoryWindow : Window
  12. {
  13. /// <summary>
  14. /// 视频模型
  15. /// </summary>
  16. List<Model_Video> model_VideoList =null;
  17. /// <summary>
  18. /// 文件目录
  19. /// </summary>
  20. public FileDirectoryWindow()
  21. {
  22. InitializeComponent();
  23. Initialize();
  24. }
  25. /// <summary>
  26. /// 初始化
  27. /// </summary>
  28. public void Initialize()
  29. {
  30. //加载视频列表
  31. LoadingVideoList();
  32. //显示视频
  33. foreach (Model_Video videoinfo in model_VideoList)
  34. {
  35. //是否已上传
  36. //videoinfo.IsUpload;
  37. //录制时间
  38. //videoinfo.RSTime;
  39. //文件大小
  40. //videoinfo.VideoSize;
  41. //文件缩略图路径
  42. //videoinfo.ThumbnailPath;
  43. //文件唯一标示 上传事件筛选需要上传的视频
  44. //videoinfo.FileGuid;
  45. //文件存储路径
  46. //videoinfo.VidePath;
  47. }
  48. }
  49. /// <summary>
  50. /// 加载视频列表
  51. /// </summary>
  52. public void LoadingVideoList()
  53. {
  54. model_VideoList = new List<Model_Video>();
  55. foreach(Model_WKData Vdata in APP.WKDataList)
  56. {
  57. if (Vdata.VideoList == null)
  58. continue;
  59. foreach(Model_Video videoinfo in Vdata.VideoList)
  60. {
  61. model_VideoList.Add(videoinfo);
  62. }
  63. }
  64. }
  65. /// <summary>
  66. /// 关闭
  67. /// </summary>
  68. /// <param name="sender"></param>
  69. /// <param name="e"></param>
  70. private void btnDown_Click(object sender, RoutedEventArgs e)
  71. {
  72. this.Hide();
  73. }
  74. /// <summary>
  75. /// 窗口移动
  76. /// </summary>
  77. /// <param name="sender"></param>
  78. /// <param name="e"></param>
  79. private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
  80. {
  81. DragMove();
  82. }
  83. }
  84. }