Browse Source

录屏中使用画笔录制无法结束的BUG修复

用户无章节闪退BUG修复
master
张剑 2 years ago
parent
commit
eb758b0a6d

+ 2
- 2
XHWK.WKTool/App.config View File

9
     <!--参数是否加密 0不加密 1加密-->
9
     <!--参数是否加密 0不加密 1加密-->
10
     <add key="IsParameterEncryption" value="0" />
10
     <add key="IsParameterEncryption" value="0" />
11
     <!--版本号-->
11
     <!--版本号-->
12
-    <add key="VersionCode" value="113" />
13
-    <add key="VersionName" value="3.2.4" />
12
+    <add key="VersionCode" value="114" />
13
+    <add key="VersionName" value="3.2.5" />
14
     <!--皮肤样式 0白 1蓝 2黑色 -->
14
     <!--皮肤样式 0白 1蓝 2黑色 -->
15
     <add key="SkinStyle" value="0" />
15
     <add key="SkinStyle" value="0" />
16
     <!--是否输出视频记录日志:0否-->
16
     <!--是否输出视频记录日志:0否-->

+ 22
- 10
XHWK.WKTool/UControl/Uc_VideoItem.xaml.cs View File

18
     public partial class Uc_VideoItem : UserControl
18
     public partial class Uc_VideoItem : UserControl
19
     {
19
     {
20
         #region 初始值
20
         #region 初始值
21
+
21
         /// <summary>
22
         /// <summary>
22
         /// 视频模型
23
         /// 视频模型
23
         /// </summary>
24
         /// </summary>
24
         private Model_Video VideoModel = new Model_Video();
25
         private Model_Video VideoModel = new Model_Video();
26
+
25
         /// <summary>
27
         /// <summary>
26
         /// 刷新视频列表
28
         /// 刷新视频列表
27
         /// </summary>
29
         /// </summary>
28
         public delegate void RefreshVideoList();
30
         public delegate void RefreshVideoList();
31
+
29
         /// <summary>
32
         /// <summary>
30
         /// 刷新视频列表事件
33
         /// 刷新视频列表事件
31
         /// </summary>
34
         /// </summary>
32
         public event RefreshVideoList Click_refreshVideoList;
35
         public event RefreshVideoList Click_refreshVideoList;
36
+
33
         /// <summary>
37
         /// <summary>
34
         /// 登录
38
         /// 登录
35
         /// </summary>
39
         /// </summary>
36
         public delegate void UploadLogin();
40
         public delegate void UploadLogin();
41
+
37
         /// <summary>
42
         /// <summary>
38
         /// 登录事件
43
         /// 登录事件
39
         /// </summary>
44
         /// </summary>
44
         /// </summary>
49
         /// </summary>
45
         private UploadWindow W_UploadWindow = null;
50
         private UploadWindow W_UploadWindow = null;
46
 
51
 
47
-        #endregion
52
+        #endregion 初始值
48
 
53
 
49
         #region 初始化
54
         #region 初始化
55
+
50
         /// <summary>
56
         /// <summary>
51
         /// 视频信息
57
         /// 视频信息
52
         /// </summary>
58
         /// </summary>
68
             if (VideoModel.IsUpload)
74
             if (VideoModel.IsUpload)
69
             {
75
             {
70
                 BtnUpload.Visibility = Visibility.Hidden;
76
                 BtnUpload.Visibility = Visibility.Hidden;
71
-              
72
             }
77
             }
73
         }
78
         }
74
-        #endregion
79
+
80
+        #endregion 初始化
75
 
81
 
76
         #region 修改视频名
82
         #region 修改视频名
83
+
77
         /// <summary>
84
         /// <summary>
78
         /// 双击修改视频名
85
         /// 双击修改视频名
79
         /// </summary>
86
         /// </summary>
89
                 //BtnNameModifyOK.Visibility = Visibility.Visible;
96
                 //BtnNameModifyOK.Visibility = Visibility.Visible;
90
             }
97
             }
91
         }
98
         }
99
+
92
         /// <summary>
100
         /// <summary>
93
         /// 失去焦点保存视频名
101
         /// 失去焦点保存视频名
94
         /// </summary>
102
         /// </summary>
111
                 ModifyVideoName();
119
                 ModifyVideoName();
112
             }
120
             }
113
         }
121
         }
122
+
114
         /// <summary>
123
         /// <summary>
115
         /// 修改文件名保存
124
         /// 修改文件名保存
116
         /// </summary>
125
         /// </summary>
149
                 //BtnNameModifyOK.Visibility = Visibility.Hidden;
158
                 //BtnNameModifyOK.Visibility = Visibility.Hidden;
150
             }
159
             }
151
         }
160
         }
161
+
152
         /// <summary>
162
         /// <summary>
153
         /// 修改视频文件名
163
         /// 修改视频文件名
154
         /// </summary>
164
         /// </summary>
163
             {
173
             {
164
                 if (WKData.VideoList.Exists(x => x.FileGuid == FileGuid))
174
                 if (WKData.VideoList.Exists(x => x.FileGuid == FileGuid))
165
                 {
175
                 {
166
-
167
                     Model_Video model_Video = WKData.VideoList.Find(x => x.FileGuid == FileGuid);
176
                     Model_Video model_Video = WKData.VideoList.Find(x => x.FileGuid == FileGuid);
168
 
177
 
169
                     string filePathName = model_Video.VideoPath;
178
                     string filePathName = model_Video.VideoPath;
201
             return false;
210
             return false;
202
         }
211
         }
203
 
212
 
204
-        #endregion
213
+        #endregion 修改视频名
205
 
214
 
206
         #region 删除视频
215
         #region 删除视频
216
+
207
         /// <summary>
217
         /// <summary>
208
         /// 删除视频
218
         /// 删除视频
209
         /// </summary>
219
         /// </summary>
244
                 }
254
                 }
245
             }
255
             }
246
         }
256
         }
247
-        #endregion
257
+
258
+        #endregion 删除视频
248
 
259
 
249
         #region 播放视频
260
         #region 播放视频
250
 
261
 
266
                 return;
277
                 return;
267
             }
278
             }
268
         }
279
         }
280
+
269
         /// <summary>
281
         /// <summary>
270
         /// 视频播放
282
         /// 视频播放
271
         /// </summary>
283
         /// </summary>
288
                 System.Windows.MessageBox.Show(ex.Message);
300
                 System.Windows.MessageBox.Show(ex.Message);
289
                 return;
301
                 return;
290
             }
302
             }
291
-
292
         }
303
         }
293
-        #endregion
304
+
305
+        #endregion 播放视频
294
 
306
 
295
         /// <summary>
307
         /// <summary>
296
         /// 视频上传
308
         /// 视频上传
331
 
343
 
332
                     //long size = Convert.ToInt64(FileToolsCommon.GetFileSizeByMB(pageData.menuList[i].FilePath));
344
                     //long size = Convert.ToInt64(FileToolsCommon.GetFileSizeByMB(pageData.menuList[i].FilePath));
333
                     W_UploadWindow.Initialize(TbName.Text, VideoModel.VideoSizebyte, VideoModel.VideoType.ToString(), VideoModel.FileGuid, 0);
345
                     W_UploadWindow.Initialize(TbName.Text, VideoModel.VideoSizebyte, VideoModel.VideoType.ToString(), VideoModel.FileGuid, 0);
334
-                    W_UploadWindow.ShowDialog();
335
                 }
346
                 }
336
                 else
347
                 else
337
                 {
348
                 {
355
                 BtnUpload.Background.Opacity = 0.6;
366
                 BtnUpload.Background.Opacity = 0.6;
356
             }
367
             }
357
         }
368
         }
369
+
358
         /// <summary>
370
         /// <summary>
359
         /// 编辑
371
         /// 编辑
360
         /// </summary>
372
         /// </summary>
372
             }
384
             }
373
         }
385
         }
374
     }
386
     }
375
-}
387
+}

+ 46
- 22
XHWK.WKTool/UploadWindow.xaml.cs View File

99
                 }
99
                 }
100
                 book_list.SelectedIndex = 0;
100
                 book_list.SelectedIndex = 0;
101
                 DataContext = pageData;
101
                 DataContext = pageData;
102
-                Director();
102
+
103
+                if (APP.TsubjectbookList.Count > 0)
104
+                {
105
+                    Director();
106
+                    ShowDialog();
107
+                }
108
+                else
109
+                {
110
+                    APP.IsUpLoad = false;
111
+                    Hide();
112
+                    MessageWindow.Show("暂无章节!");
113
+                }
103
             }
114
             }
104
             else
115
             else
105
             {
116
             {
117
             {
128
             {
118
                 selectIndex = 0;
129
                 selectIndex = 0;
119
             }
130
             }
120
-            int code = xhapi.DirectorList(APP.TsubjectbookList[selectIndex].Lsbid, 4, APP.UserInfo.Userid);
121
-            if (code == 0)
131
+            if (APP.TsubjectbookList.Count > selectIndex)
122
             {
132
             {
123
-                pageData.zhangjieList.Clear();
124
-                pageData.zhangjieList.Add(new ComboBoxBean()
125
-                {
126
-                    Key = "0",
127
-                    Value = "全部",
128
-                    leaf = 1
129
-                });
130
-                for (int i = 0; i < APP.DirectorList.Count; i++)
133
+                int code = xhapi.DirectorList(APP.TsubjectbookList[selectIndex].Lsbid, 4, APP.UserInfo.Userid);
134
+                if (code == 0)
131
                 {
135
                 {
132
-                    Model_DirectorList item = APP.DirectorList[i];
136
+                    pageData.zhangjieList.Clear();
133
                     pageData.zhangjieList.Add(new ComboBoxBean()
137
                     pageData.zhangjieList.Add(new ComboBoxBean()
134
                     {
138
                     {
135
-                        Key = item.directorid,
136
-                        Value = item.directorname,
137
-                        leaf = item.leaf
139
+                        Key = "0",
140
+                        Value = "全部",
141
+                        leaf = 1
138
                     });
142
                     });
139
-                    addChild(item);
143
+                    for (int i = 0; i < APP.DirectorList.Count; i++)
144
+                    {
145
+                        Model_DirectorList item = APP.DirectorList[i];
146
+                        pageData.zhangjieList.Add(new ComboBoxBean()
147
+                        {
148
+                            Key = item.directorid,
149
+                            Value = item.directorname,
150
+                            leaf = item.leaf
151
+                        });
152
+                        addChild(item);
153
+                    }
154
+                    cmbTeachingMaterial.SelectedIndex = 0;
155
+                }
156
+                else
157
+                {
158
+                    MessageWindow.Show(APP.ServerMsg);
140
                 }
159
                 }
141
-                cmbTeachingMaterial.SelectedIndex = 0;
142
-            }
143
-            else
144
-            {
145
-                MessageWindow.Show(APP.ServerMsg);
146
             }
160
             }
147
         }
161
         }
148
 
162
 
190
 
204
 
191
         private void Window_Loaded(object sender, RoutedEventArgs e)
205
         private void Window_Loaded(object sender, RoutedEventArgs e)
192
         {
206
         {
207
+            //Tsubjectbook();
193
         }
208
         }
194
 
209
 
195
         private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
210
         private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
205
         /// </param>
220
         /// </param>
206
         private void toolbar_list_SelectionChanged(object sender, SelectionChangedEventArgs e)
221
         private void toolbar_list_SelectionChanged(object sender, SelectionChangedEventArgs e)
207
         {
222
         {
208
-            Director();
223
+            if (APP.TsubjectbookList.Count > 0)
224
+            {
225
+                Director();
226
+            }
227
+            else
228
+            {
229
+                MessageWindow.Show("暂无章节!");
230
+                APP.IsUpLoad = false;
231
+                Hide();
232
+            }
209
         }
233
         }
210
 
234
 
211
         private void BtnDown_Click(object sender, RoutedEventArgs e)
235
         private void BtnDown_Click(object sender, RoutedEventArgs e)

+ 1
- 1
星火微课/星火微课-正式.iss View File

3
 
3
 
4
 #define MyAppName "星火微课"  
4
 #define MyAppName "星火微课"  
5
 #define MyAppDir "xhwk"
5
 #define MyAppDir "xhwk"
6
-#define MyAppVersion "3.2.4"
6
+#define MyAppVersion "3.2.5"
7
 #define MyAppPublisher "河南星火燎原软件科技有限公司"
7
 #define MyAppPublisher "河南星火燎原软件科技有限公司"
8
 #define MyAppURL "http://www.xhkjedu.com/"
8
 #define MyAppURL "http://www.xhkjedu.com/"
9
 #define MySourcePath "D:\Project\CSharp\xhwkclient\XHWK.WKTool\bin\x86\Debug\"
9
 #define MySourcePath "D:\Project\CSharp\xhwkclient\XHWK.WKTool\bin\x86\Debug\"

Loading…
Cancel
Save