瀏覽代碼

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

用户无章节闪退BUG修复
master
张剑 2 年之前
父節點
當前提交
eb758b0a6d

+ 2
- 2
XHWK.WKTool/App.config 查看文件

@@ -9,8 +9,8 @@
9 9
     <!--参数是否加密 0不加密 1加密-->
10 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 14
     <!--皮肤样式 0白 1蓝 2黑色 -->
15 15
     <add key="SkinStyle" value="0" />
16 16
     <!--是否输出视频记录日志:0否-->

+ 22
- 10
XHWK.WKTool/UControl/Uc_VideoItem.xaml.cs 查看文件

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

+ 46
- 22
XHWK.WKTool/UploadWindow.xaml.cs 查看文件

@@ -99,7 +99,18 @@ namespace XHWK.WKTool
99 99
                 }
100 100
                 book_list.SelectedIndex = 0;
101 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 115
             else
105 116
             {
@@ -117,32 +128,35 @@ namespace XHWK.WKTool
117 128
             {
118 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 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,6 +204,7 @@ namespace XHWK.WKTool
190 204
 
191 205
         private void Window_Loaded(object sender, RoutedEventArgs e)
192 206
         {
207
+            //Tsubjectbook();
193 208
         }
194 209
 
195 210
         private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
@@ -205,7 +220,16 @@ namespace XHWK.WKTool
205 220
         /// </param>
206 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 235
         private void BtnDown_Click(object sender, RoutedEventArgs e)

+ 1
- 1
星火微课/星火微课-正式.iss 查看文件

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

Loading…
取消
儲存