12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- using Org.BouncyCastle.Asn1.Crmf;
- using System.Collections.Generic;
- using System.Windows;
- using System.Windows.Input;
- using XHWK.Model;
-
- namespace XHWK.WKTool
- {
- /// <summary>
- /// 文件目录
- /// </summary>
- public partial class FileDirectoryWindow : Window
- {
- /// <summary>
- /// 视频模型
- /// </summary>
- List<Model_Video> model_VideoList =null;
- /// <summary>
- /// 文件目录
- /// </summary>
- public FileDirectoryWindow()
- {
- InitializeComponent();
- Initialize();
- }
- /// <summary>
- /// 初始化
- /// </summary>
- public void Initialize()
- {
- //加载视频列表
- LoadingVideoList();
- //显示视频
- foreach (Model_Video videoinfo in model_VideoList)
- {
- //是否已上传
- //videoinfo.IsUpload;
- //录制时间
- //videoinfo.RSTime;
- //文件大小
- //videoinfo.VideoSize;
- //文件缩略图路径
- //videoinfo.ThumbnailPath;
- //文件唯一标示 上传事件筛选需要上传的视频
- //videoinfo.FileGuid;
- //文件存储路径
- //videoinfo.VidePath;
- }
- }
- /// <summary>
- /// 加载视频列表
- /// </summary>
- public void LoadingVideoList()
- {
- model_VideoList = new List<Model_Video>();
- foreach(Model_WKData Vdata in APP.WKDataList)
- {
- if (Vdata.VideoList == null)
- continue;
- foreach(Model_Video videoinfo in Vdata.VideoList)
- {
- model_VideoList.Add(videoinfo);
- }
- }
- }
- /// <summary>
- /// 关闭
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void btnDown_Click(object sender, RoutedEventArgs e)
- {
- this.Hide();
- }
- /// <summary>
- /// 窗口移动
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
- {
- DragMove();
- }
- }
- }
|