Quellcode durchsuchen

Merge remote-tracking branch 'origin/zhangxueyang' into zyy

# Conflicts:
#	XHWK.WKTool/XHMicroLessonSystemWindow.xaml
#	XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs
#	XHWK.WKTool/XHWK.WKTool.csproj
tags/录制修改前
耀 vor 4 Jahren
Ursprung
Commit
b28b15315d

+ 1
- 1
Common/system/FFMpeg.cs Datei anzeigen

@@ -880,7 +880,7 @@ namespace Common.system
880 880
                         {
881 881
                             waveIn.StopRecording();
882 882
                         }
883
-                        catch (Exception ex)
883
+                        catch (Exception)
884 884
                         {
885 885
                             waveIn = null;
886 886
                         }

+ 2
- 2
XHWK.Model/Properties/AssemblyInfo.cs Datei anzeigen

@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
31 31
 //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
32 32
 //通过使用 "*",如下所示:
33 33
 // [assembly: AssemblyVersion("1.0.*")]
34
-[assembly: AssemblyVersion("1.1.3.0")]
35
-[assembly: AssemblyFileVersion("1.1.3.0")]
34
+[assembly: AssemblyVersion("1.1.4.0")]
35
+[assembly: AssemblyFileVersion("1.1.4.0")]

+ 3
- 2
XHWK.WKTool/App.config Datei anzeigen

@@ -4,6 +4,7 @@
4 4
         <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
5 5
     </startup>
6 6
   <appSettings>
7
+    <!--0正式 1测试-->
7 8
     <add key="IsDebug" value="1"/>
8 9
     <!--图片压缩等级-->
9 10
     <add key="ImageCompressionLevel" value="30" />
@@ -32,7 +33,7 @@
32 33
     <!--上传每片大小 Mb-->
33 34
     <add key="UploadSliceLen" value="1"/>
34 35
     <!--版本号-->
35
-    <add key="VersionCode" value="14"/>
36
-    <add key="VersionName" value="1.1.3"/>
36
+    <add key="VersionCode" value="15"/>
37
+    <add key="VersionName" value="1.1.4"/>
37 38
   </appSettings>
38 39
 </configuration>

+ 4
- 4
XHWK.WKTool/CreateAMicroLessonWindow.xaml Datei anzeigen

@@ -27,21 +27,21 @@
27 27
             </Grid>
28 28
         </Border>
29 29
         <!--第二行 讲解名称-->
30
-        <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,60,0,0" Grid.ColumnSpan="2">
30
+        <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,60,0,1" Grid.ColumnSpan="2">
31 31
             <Label Content="*" FontSize="18" Padding="0,20,0,0" Foreground="#FF0000"/>
32 32
             <TextBlock Text="讲解名称" FontSize="18" Padding="2,15,10,0"/>
33 33
             <!--输入框-->
34 34
             <Border Background="#CDD6E0" Width="321" Height="43" CornerRadius="3">
35
-                <TextBox x:Name="txbExplainName" Text="微课1" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="319" Height="42" BorderBrush="{x:Null}" BorderThickness="0"/>
35
+                <TextBox x:Name="txbExplainName" Text="微课1" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="319" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
36 36
             </Border>
37 37
         </StackPanel>
38 38
         <!--第三行 存放路径-->
39
-        <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="10,30,0,0" Grid.ColumnSpan="2">
39
+        <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="10,30,0,1" Grid.ColumnSpan="2">
40 40
             <Label Content="*" FontSize="18" Padding="0,20,0,0" Foreground="#FF0000"/>
41 41
             <TextBlock Text="存放路径" FontSize="18" Padding="2,15,10,0"/>
42 42
             <!--输入框-->
43 43
             <Border Background="#CDD6E0" Width="225" Height="43" CornerRadius="3">
44
-                <TextBox x:Name="txbStoragePath" Text="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="223" Height="42" BorderBrush="{x:Null}" BorderThickness="0"/>
44
+                <TextBox x:Name="txbStoragePath" Text="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="223" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
45 45
             </Border>
46 46
             <!--浏览按钮-->
47 47
             <Button  Cursor="Hand" x:Name="btnBrowse" Content="浏览" FontSize="18" Width="80" Height="43" Margin="18,0,0,0" Click="BtnBrowse_Click">

+ 1
- 0
XHWK.WKTool/CreateAMicroLessonWindow.xaml.cs Datei anzeigen

@@ -26,6 +26,7 @@ namespace XHWK.WKTool
26 26
         public CreateAMicroLessonWindow()
27 27
         {
28 28
             InitializeComponent();
29
+            this.ResizeMode = ResizeMode.NoResize;
29 30
             if (!APP.CheckScreenCapturerRecorder())
30 31
             {
31 32
                 MessageWindow.Show("首次运行需安装环境,请在确定后依次点击“OK-Next>-Next>Install”完成安装!");

BIN
XHWK.WKTool/Images/Toobar30.png Datei anzeigen


BIN
XHWK.WKTool/Images/rdo_no.png Datei anzeigen


BIN
XHWK.WKTool/Images/rdo_yes.png Datei anzeigen


+ 3
- 3
XHWK.WKTool/LoginWindow.xaml Datei anzeigen

@@ -33,12 +33,12 @@
33 33
         <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="20,20,0,0">
34 34
             <TextBlock Text="登陆" FontSize="18" Padding="2,15,10,0"/>
35 35
             <!--输入框-->
36
-            <Border Background="#cccbce" Width="371" Height="43" CornerRadius="3">
36
+            <Border Background="#cccbce" Width="371" Height="43" CornerRadius="3" Margin="0,0,0,1">
37 37
                 <TextBox x:Name="txbAccountNumber" Text="" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="369" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
38 38
             </Border>
39 39
         </StackPanel>
40 40
         <!--第三行 密码-->
41
-        <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="20,20,0,0">
41
+        <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="20,20,0,1">
42 42
             <TextBlock Text="密码" FontSize="18" Padding="2,15,10,0"/>
43 43
             <!--输入框-->
44 44
             <Border Background="#cccbce" Width="371" Height="43" CornerRadius="3">
@@ -49,7 +49,7 @@
49 49
             <Viewbox Height="23">
50 50
                 <CheckBox   x:Name="ckSaveName" Click="CkSaveName_Click"/>
51 51
             </Viewbox>
52
-            <TextBlock Text="记住账号" FontSize="18" Height="30" Padding="5,3,0,0" Margin="0,9,0,1"/>
52
+            <TextBlock Text="记住账号" FontSize="18" Height="30" Padding="5,3,0,0" Margin="0,0,0,1"/>
53 53
         </StackPanel>
54 54
 
55 55
         <!--第五行 开始按钮-->

+ 2
- 1
XHWK.WKTool/PracticeWindow.xaml.cs Datei anzeigen

@@ -385,7 +385,8 @@ namespace XHWK.WKTool
385 385
             {
386 386
                 APP.W_ScreenRecordingToolbarWindow.flg = 1;
387 387
             }
388
-            Hide();
388
+            APP.W_ScreenRecordingToolbarWindow.ReturnPractice();
389
+            //Hide();
389 390
         }
390 391
     }
391 392
 }

+ 5
- 3
XHWK.WKTool/PrintWindow.xaml Datei anzeigen

@@ -30,7 +30,8 @@
30 30
             </Setter>
31 31
         </Style>
32 32
     </Window.Resources>
33
-    <Grid>
33
+    <Viewbox>
34
+        <Grid x:Name="GridContent" Height="600" Width="900">
34 35
         <Grid.RowDefinitions>
35 36
             <RowDefinition Height="120"/>
36 37
             <RowDefinition Height="*"/>
@@ -56,7 +57,7 @@
56 57
                                 FontSize="14"
57 58
                                 SelectedValuePath="Key"
58 59
                                 />
59
-                <TextBlock Text="份数:" FontSize="20" Margin="120,0,0,0" Padding="0,5,0,0"/>
60
+                <TextBlock Text="份数:" FontSize="20" Margin="80,0,0,0" Padding="0,5,0,0" HorizontalAlignment="Right"/>
60 61
                 <TextBlock x:Name="txbNumberOfCopies" Width="100" Text="1" FontSize="16" Padding="50,10,0,0" Background="White"/>
61 62
                 <Grid>
62 63
                     <Grid.RowDefinitions>
@@ -111,7 +112,7 @@
111 112
             VerticalAlignment="Center"
112 113
             Background="#FAFAFA"
113 114
             CornerRadius="4"
114
-            Visibility="Visible">
115
+            Visibility="Collapsed">
115 116
             <Grid>
116 117
 
117 118
                 <ProgressBar BorderBrush="#4597FF"
@@ -133,4 +134,5 @@
133 134
             </Grid>
134 135
         </Views:ZJClippingBorder>
135 136
     </Grid>
137
+    </Viewbox>
136 138
 </Window>

+ 155
- 37
XHWK.WKTool/PrintWindow.xaml.cs Datei anzeigen

@@ -42,6 +42,14 @@ namespace XHWK.WKTool
42 42
         public PrintWindow()
43 43
         {
44 44
             InitializeComponent();
45
+            double proportion = 1036.0 / 1290.0;
46
+          double  Widths = (PrimaryScreen.ScaleWorkingAreaSize.Height) / proportion - (BorderThickness.Left + BorderThickness.Right);
47
+          double  Heights = PrimaryScreen.ScaleWorkingAreaSize.Height - (BorderThickness.Top + BorderThickness.Bottom);
48
+            Width = Widths / 1.42;
49
+            Height = Heights / 1.71;
50
+            GridContent.Width = Width+5;
51
+            GridContent.Height = Height;
52
+            this.ResizeMode = ResizeMode.NoResize;
45 53
             string defa = string.Empty;
46 54
             List<string> defaList = LatticeFileHelper.GetPrinterList(out defa);
47 55
             if (defaList.Count > 0)
@@ -94,10 +102,16 @@ namespace XHWK.WKTool
94 102
                 MessageWindow.Show("打印机不能为空!");
95 103
                 return;
96 104
             }
97
-            I = 1;
98 105
             APP.myloading.Show();
99
-            tip_outer.Visibility = Visibility.Visible;
100
-            Thread.Sleep(2000);
106
+            APP.BackgroundWorkerHelper.RunWorkerAsync(InvokeServering, InvokeServerCompate);
107
+
108
+
109
+
110
+
111
+            //I = 1;
112
+            //APP.myloading.Show();
113
+            //tip_outer.Visibility = Visibility.Visible;
114
+            //Thread.Sleep(2000);
101 115
             //Times();
102 116
             //Dispatcher.Invoke(() =>
103 117
             //{
@@ -114,6 +128,90 @@ namespace XHWK.WKTool
114 128
 
115 129
 
116 130
 
131
+            //string imgPath = FileToolsCommon.GetFileAbsolutePath("temp");
132
+            //FileToolsCommon.CreateFile(imgPath);
133
+            //string pdf = imgPath + "\\101.pdf";
134
+            //string tpf = imgPath + "\\102.TPF";
135
+            //string msg = string.Empty;
136
+            //string outPut = string.Empty;
137
+            ////if(rbnSquarePoint.IsChecked==false)
138
+            ////{
139
+            ////    pyte = 1;
140
+            ////}
141
+            //LatticeFileHelper.GeneratingPDF(pdf, tpf, out int pr, out msg, out outPut/*, pyte*/);
142
+            //if (pr == 0)
143
+            //{
144
+            //    //outPut = outPut.Replace("[", "").Replace("]", "").Replace("\"", "").Trim();
145
+            //    //APP.OutPut = outPut.Split(',');
146
+            //    //string []page= outPut.Split(',');
147
+            //    //for(int i=0;i<page.Length;i++) //增加页码编号
148
+            //    //{
149
+            //    //    APP.PageDrawList[i].PageCode = page[i];
150
+            //    //}
151
+
152
+            //    //string defa = string.Empty;
153
+            //    //List<string> defaList = LatticeFileHelper.GetPrinterList(out defa);
154
+
155
+            //    string standardError = string.Empty;
156
+            //    string standardOutput = string.Empty;
157
+            //    int frequency = Convert.ToInt32(txbNumberOfCopies.Text);
158
+            //    //for (int i=0;i< frequency;i++)
159
+            //    //{
160
+            //    LatticeFileHelper.PrinterTPFFile(tpf, frequency, cmbClass.Text, out int printResult, out standardError, out standardOutput);
161
+            //    //}
162
+            //    if (printResult == 0)// 0为成功
163
+            //    {
164
+            //        new Thread(new ThreadStart(new Action(() =>
165
+            //        {
166
+            //            Dispatcher.Invoke(() =>
167
+            //            {
168
+            //                I = 100;
169
+            //                pgbProcess.Value = I * 100 / 100;
170
+            //                lbProcess.Content = string.Format("{0}/{1}", I, 100);
171
+            //                APP.myloading.Hide();
172
+            //                I = 0;
173
+            //            });
174
+            //            Thread.Sleep(2000);
175
+            //            Dispatcher.Invoke(() =>
176
+            //            {
177
+            //                //tip_outer.Visibility = Visibility.Collapsed;
178
+            //                MessageWindow.Show("打印成功");
179
+            //            });
180
+            //        }))).Start();
181
+
182
+
183
+                   
184
+                    
185
+                  
186
+            //    }
187
+            //    else
188
+            //    {
189
+            //        APP.myloading.Hide();
190
+            //        MessageWindow.Show(standardError);
191
+            //    }
192
+            //}
193
+            //else
194
+            //{
195
+            //    APP.myloading.Hide();
196
+            //    MessageWindow.Show(msg);
197
+            //}
198
+        }
199
+        /// <summary>
200
+        /// 打印-开始
201
+        /// </summary>
202
+        /// <returns></returns>
203
+        private object InvokeServering()
204
+        {
205
+            Dispatcher.Invoke(() =>
206
+                       {
207
+                           I = 1;
208
+                           pgbProcess.Value = I * 100 / 100;
209
+                           lbProcess.Content = string.Format("{0}/{1}", I, 100);
210
+                           tip_outer.Visibility = Visibility.Visible;
211
+                           //I = 0;
212
+                       });
213
+            Thread.Sleep(2000);
214
+
117 215
             string imgPath = FileToolsCommon.GetFileAbsolutePath("temp");
118 216
             FileToolsCommon.CreateFile(imgPath);
119 217
             string pdf = imgPath + "\\101.pdf";
@@ -140,47 +238,54 @@ namespace XHWK.WKTool
140 238
 
141 239
                 string standardError = string.Empty;
142 240
                 string standardOutput = string.Empty;
143
-                int frequency = Convert.ToInt32(txbNumberOfCopies.Text);
144
-                //for (int i=0;i< frequency;i++)
145
-                //{
146
-                LatticeFileHelper.PrinterTPFFile(tpf, frequency, cmbClass.Text, out int printResult, out standardError, out standardOutput);
147
-                //}
148
-                if (printResult == 0)// 0为成功
241
+                int frequency = 1;
242
+                Dispatcher.Invoke(() =>
149 243
                 {
150
-                    new Thread(new ThreadStart(new Action(() =>
244
+                     frequency = Convert.ToInt32(txbNumberOfCopies.Text);
245
+                    LatticeFileHelper.PrinterTPFFile(tpf, frequency, cmbClass.Text, out int printResult, out standardError, out standardOutput);
246
+                    if (printResult == 0)// 0为成功
151 247
                     {
152
-                        Dispatcher.Invoke(() =>
153
-                        {
154
-                            I = 100;
155
-                            pgbProcess.Value = I * 100 / 100;
156
-                            lbProcess.Content = string.Format("{0}/{1}", I, 100);
157
-                            APP.myloading.Hide();
158
-                            I = 0;
159
-                        });
160
-                        Thread.Sleep(2000);
161
-                        Dispatcher.Invoke(() =>
248
+                        new Thread(new ThreadStart(new Action(() =>
162 249
                         {
163
-                            //tip_outer.Visibility = Visibility.Collapsed;
164
-                            MessageWindow.Show("打印成功");
165
-                        });
166
-                    }))).Start();
167
-
168
-
169
-                   
170
-                    
171
-                  
172
-                }
173
-                else
174
-                {
175
-                    APP.myloading.Hide();
176
-                    MessageWindow.Show(standardError);
177
-                }
250
+                            Dispatcher.Invoke(() =>
251
+                            {
252
+                                I = 100;
253
+                                pgbProcess.Value = I * 100 / 100;
254
+                                lbProcess.Content = string.Format("{0}/{1}", I, 100);
255
+                                APP.myloading.Hide();
256
+                                I = 0;
257
+                            });
258
+                            Thread.Sleep(3000);
259
+                            Dispatcher.Invoke(() =>
260
+                            {
261
+                                tip_outer.Visibility = Visibility.Collapsed;
262
+                                //tip_outer.Visibility = Visibility.Collapsed;
263
+                                MessageWindow.Show("打印成功");
264
+                            });
265
+                        }))).Start();
266
+                    }
267
+                    else
268
+                    {
269
+                        APP.myloading.Hide();
270
+                        MessageWindow.Show(standardError);
271
+                    }
272
+                });
273
+             
178 274
             }
179 275
             else
180 276
             {
181 277
                 APP.myloading.Hide();
182 278
                 MessageWindow.Show(msg);
183 279
             }
280
+            return "";
281
+        }
282
+        /// <summary>
283
+        /// 打印-结束
284
+        /// </summary>
285
+        /// <returns></returns>
286
+        public void InvokeServerCompate(object obj)
287
+        {
288
+            APP.myloading.Hide();
184 289
         }
185 290
         /// <summary>
186 291
         /// 时钟回调
@@ -211,13 +316,21 @@ namespace XHWK.WKTool
211 316
             }
212 317
 
213 318
             string time = string.Format("{0:D2}:{1:D2}",/* _timeSpan.Hours,*/ _timeSpan.Minutes, _timeSpan.Seconds);
214
-            if(I <= 90 && I != 0)
319
+            if(I < 90 && I != 0)
215 320
             {
216 321
                 Dispatcher.Invoke(() =>
217 322
                 {
323
+                 
218 324
                     pgbProcess.Value = I * 100 / 100;
219 325
             lbProcess.Content = string.Format("{0}/{1}", I, 100);
220
-            I++;
326
+                    if (I == 1)
327
+                    {
328
+                        I = 30;
329
+                    }
330
+                    else
331
+                    {
332
+                        I += 30;
333
+                    }
221 334
                 });
222 335
             }
223 336
         }
@@ -301,5 +414,10 @@ namespace XHWK.WKTool
301 414
                 txbNumberOfCopies.Text = num.ToString();
302 415
             }
303 416
         }
417
+
418
+        private void Window_MouseLeftButtonDown_1(object sender, MouseButtonEventArgs e)
419
+        {
420
+
421
+        }
304 422
     }
305 423
 }

+ 18
- 5
XHWK.WKTool/ScreenRecordingToolbarWindow.xaml.cs Datei anzeigen

@@ -409,13 +409,13 @@ namespace XHWK.WKTool
409 409
                 IsSuspend = true;
410 410
                 ImgRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar26.png"));//大圆圈三角形
411 411
                 BtnStopRecordingScreen.IsEnabled = false; //停止录制按钮不点击
412
-                imgBlackPenOne.Source = new BitmapImage(new Uri("pack://application:,,,/Images/31.png"));
413
-                btnBlackPenOne.IsEnabled = false;//蓝笔不可点击
414
-                imgBlackPenTwo.Source = new BitmapImage(new Uri("pack://application:,,,/Images/31.png"));
415
-                btnBlackPenTwo.IsEnabled = false;//红笔不可点击
412
+                //imgBlackPenOne.Source = new BitmapImage(new Uri("pack://application:,,,/Images/31.png"));
413
+                //btnBlackPenOne.IsEnabled = false;//蓝笔不可点击
414
+                //imgBlackPenTwo.Source = new BitmapImage(new Uri("pack://application:,,,/Images/31.png"));
415
+                //btnBlackPenTwo.IsEnabled = false;//红笔不可点击
416 416
                 txbTime.Visibility = Visibility.Hidden;//时间不显示
417 417
                 imgReturn.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar29.png"));
418
-                //btnReturn.IsEnabled = true;//返回主界面可点击
418
+                btnReturn.IsEnabled = true;//返回主界面可点击
419 419
                 #region 2秒内不可点击
420 420
                 new Thread(new ThreadStart(new Action(() =>
421 421
                 {
@@ -1005,5 +1005,18 @@ namespace XHWK.WKTool
1005 1005
             APP.W_XHMicroLessonSystemWindow.Show();
1006 1006
             Hide();
1007 1007
         }
1008
+        /// <summary>
1009
+        /// 批注退出
1010
+        /// </summary>
1011
+        public void ReturnPractice()
1012
+        {
1013
+            Dispatcher.Invoke(() =>
1014
+            {
1015
+                borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
1016
+                borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
1017
+            });
1018
+            flg = 0;
1019
+            APP.W_PracticeWindow.Hide();
1020
+        }
1008 1021
     }
1009 1022
 }

+ 1
- 1
XHWK.WKTool/UControl/Uc_VideoItem.xaml.cs Datei anzeigen

@@ -89,7 +89,7 @@ namespace XHWK.WKTool.UControl
89 89
         {
90 90
             if(e.ClickCount==2)
91 91
             {
92
-                TxtModify.Text = TbName.Text;
92
+                TxtModify.Text = TbName.ToolTip.ToString();
93 93
                 TbName.Visibility = Visibility.Hidden;
94 94
                 TxtModify.Visibility = Visibility.Visible;
95 95
                 BtnNameModifyOK.Visibility = Visibility.Visible;

+ 141
- 124
XHWK.WKTool/XHMicroLessonSystemWindow.xaml Datei anzeigen

@@ -9,7 +9,7 @@
9 9
         xmlns:local="clr-namespace:XHWK.WKTool"
10 10
         mc:Ignorable="d"
11 11
         Title="星火微课系统" Height="1036" Width="1290" 
12
-    WindowStyle="None"  WindowStartupLocation="CenterScreen"  AllowsTransparency="True"  Background="Transparent"    ShowInTaskbar="True" ResizeMode="CanMinimize" BorderThickness="7">
12
+    WindowStyle="None"  WindowStartupLocation="CenterScreen"  AllowsTransparency="True"  Background="Transparent"    ShowInTaskbar="True" ResizeMode="CanMinimize" BorderThickness="7" MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
13 13
     <Window.Effect>
14 14
         <DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
15 15
     </Window.Effect>
@@ -25,6 +25,26 @@
25 25
         </Border>
26 26
     </Grid>-->
27 27
     <Window.Resources>
28
+        <Style x:Key="radBase" TargetType="RadioButton">
29
+            <Setter Property="IsChecked" Value="False"/>
30
+            <Setter Property="Background" Value="Transparent"/>
31
+            <Setter Property="Foreground" Value="#555"/>
32
+            <Setter Property="Template">
33
+                <Setter.Value>
34
+                    <ControlTemplate TargetType="RadioButton">
35
+                        <DockPanel  Background="{TemplateBinding Background}" ToolTip="{TemplateBinding Content}" LastChildFill="False" Width="{TemplateBinding Width}">
36
+                            <Image Margin="2 0 0 0" DockPanel.Dock="Left" x:Name="_img"  Stretch="None" Source="./Images/rdo_no.png"/>
37
+                            <TextBlock DockPanel.Dock="Left" Margin="3 0 0 0" VerticalAlignment="Center" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Content}" />
38
+                        </DockPanel>
39
+                        <ControlTemplate.Triggers>
40
+                            <Trigger Property="IsChecked" Value="true">
41
+                                <Setter TargetName="_img" Property="Source" Value="./Images/rdo_yes.png"/>
42
+                            </Trigger>
43
+                        </ControlTemplate.Triggers>
44
+                    </ControlTemplate>
45
+                </Setter.Value>
46
+            </Setter>
47
+        </Style>
28 48
         <Style x:Key="NoMouseOverButtonStyle" TargetType="{x:Type Button}">
29 49
             <Setter Property="BorderThickness" Value="1"/>
30 50
             <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
@@ -275,11 +295,10 @@
275 295
                     </Button>
276 296
                 </StackPanel>
277 297
             </Grid>
278
-
279 298
             <!--主内容-->
280
-            <Grid Grid.Row="1" x:Name="GridMain" Visibility="Visible">
281
-                <ScrollViewer x:Name="scroMain" VerticalScrollBarVisibility="Visible">
282
-                    <Grid x:Name="gridM"  Margin="0,0,0,0" Background="#FFFFFF" Visibility="Visible" Height="1780">
299
+            <Grid Grid.Row="1" x:Name="GridMain" Visibility="Visible" MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
300
+                <ScrollViewer x:Name="scroMain" VerticalScrollBarVisibility="Visible" MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
301
+                    <Grid x:Name="gridM"  Margin="0,0,0,0" Background="#FFFFFF" Visibility="Visible" Height="1780" MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
283 302
                         <Grid>
284 303
                             <Border Grid.Row="1"  CornerRadius="5">
285 304
                                 <Grid x:Name="IMG" Margin="0,0,0,0">
@@ -312,12 +331,9 @@
312 331
                             </Border>
313 332
                         </Grid>
314 333
                         <Image x:Name="imgDocumentation" Visibility="Visible" VerticalAlignment="Top"/>
315
-
316 334
                         <!--导入图片-->
317 335
                         <!--<Button Cursor="Hand" x:Name="btnOk" Height="50" Width="50" Content="√" FontSize="26" Background="#2E8CF0" Foreground="#FFFFFF" Click="btnOk_Click" Visibility="Collapsed"/>-->
318
-                        <InkCanvas Grid.Row="0" x:Name="blackboard_canvas"  Background="Transparent" Visibility="Collapsed" Grid.ColumnSpan="2" />
319
-
320
-
336
+                        <InkCanvas Grid.Row="0" x:Name="blackboard_canvas"  Background="Transparent" Visibility="Collapsed" Grid.ColumnSpan="2"/>
321 337
                         <!--摄像头-->
322 338
                         <!--<wfi:WindowsFormsHost Grid.Row="0" Grid.Column="1" x:Name="wfhCamera" Height="124" Width="172" HorizontalAlignment="Right" Margin="0,10,30.10,0" VerticalAlignment="Top">
323 339
                     <aforge:VideoSourcePlayer x:Name="player" Height="124" Width="172"  />
@@ -339,20 +355,20 @@
339 355
                 <!--<TextBlock x:Name="txbTime" Text="123456" FontSize="20" Foreground="#000000" Margin="0,0,0,10" HorizontalAlignment="Left" VerticalAlignment="Bottom"/>-->
340 356
             </Grid>
341 357
             <!--页码-->
342
-            <Grid Grid.Row="1" x:Name="gridPage" Visibility="Collapsed">
343
-                <StackPanel Grid.Row="0" Orientation="Horizontal" Background="Transparent" Width="180" HorizontalAlignment="Center"
344
-            Height="30" Margin="0,0,0,0" Grid.Column="1" VerticalAlignment="Bottom">
358
+            <Grid Grid.Row="1" x:Name="gridPage" Visibility="Collapsed" MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
359
+                <StackPanel Grid.Row="0" Orientation="Horizontal" Background="Transparent" Width="180" HorizontalAlignment="Center" Height="30" Margin="0,0,0,0" Grid.Column="1" VerticalAlignment="Bottom">
345 360
                     <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
346 361
                     x:Name="last_button"
347 362
                     Width="60" Height="20"
348 363
                     Click="last_button_Click">
364
+
349 365
                         <Button.Content>
350 366
                             <StackPanel>
351 367
                                 <Image Width="16" Height="12" Source=".\Images\class_p1.png" />
352 368
                             </StackPanel>
353 369
                         </Button.Content>
354 370
                     </Button>
355
-                    <Grid Width="60"  Background="Transparent">
371
+                    <Grid Width="60"  Background="Transparent" MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
356 372
                         <Grid.RowDefinitions>
357 373
                             <RowDefinition Height="311*"/>
358 374
                             <RowDefinition Height="483*"/>
@@ -378,126 +394,129 @@
378 394
                 </StackPanel>
379 395
             </Grid>
380 396
             <!--设置-->
381
-            <Grid Grid.Row="1" x:Name="gridSetUp"  Background="#FFFFFF" Visibility="Collapsed" Width="1276">
382
-                <Grid.RowDefinitions>
383
-                    <RowDefinition Height="90"/>
384
-                    <RowDefinition Height="70"/>
385
-                    <RowDefinition Height="50"/>
386
-                    <RowDefinition Height="60"/>
387
-                    <RowDefinition Height="70"/>
388
-                    <RowDefinition Height="70"/>
389
-                    <RowDefinition Height="70"/>
390
-                    <RowDefinition Height="70"/>
391
-                    <RowDefinition Height="70"/>
392
-                    <RowDefinition Height="70"/>
393
-                    <RowDefinition Height="*"/>
394
-                </Grid.RowDefinitions>
395
-                <Grid.ColumnDefinitions>
396
-                    <ColumnDefinition Width="100"/>
397
-                    <ColumnDefinition Width="*"/>
398
-                </Grid.ColumnDefinitions>
399
-
400
-                <TextBlock Grid.Row="0" Grid.Column="0" Text="智能笔" FontSize="16" Foreground="#333333" FontWeight="Black" HorizontalAlignment="Right" Margin="0,30,0,0"/>
401
-                <TextBlock Grid.Row="0" Grid.Column="1" x:Name="txbNotConnecteds"  Text="未连接" FontSize="14" Foreground="#333333" Margin="30,30,0,0"/>
402
-
403
-                <TextBlock Grid.Row="1" Grid.Column="0" Text="视频格式" FontSize="16" Foreground="#333333" FontWeight="Black" HorizontalAlignment="Right"/>
404
-                <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
405
-                    <RadioButton x:Name="rbnMP4" Cursor="Hand" Content="MP4" FontSize="14" Foreground="#333333" Margin="0,2,0,0" IsChecked="True"/>
406
-                    <RadioButton x:Name="rbnFLV" Cursor="Hand" Content="FLV" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
407
-                    <RadioButton x:Name="rbnAVI" Cursor="Hand" Content="AVI" FontSize="14" Foreground="#333333" Margin="20,2,0,0" Visibility="Collapsed"/>
408
-                </StackPanel>
397
+            <ScrollViewer x:Name="gridSetUp" Grid.Row="1" VerticalScrollBarVisibility="Auto" Visibility="Collapsed">
398
+                <Grid Grid.Row="1"   Background="#FFFFFF" >
399
+                    <Grid.RowDefinitions>
400
+                        <RowDefinition Height="90"/>
401
+                        <RowDefinition Height="70"/>
402
+                        <RowDefinition Height="50"/>
403
+                        <RowDefinition Height="60"/>
404
+                        <RowDefinition Height="70"/>
405
+                        <RowDefinition Height="70"/>
406
+                        <RowDefinition Height="70"/>
407
+                        <RowDefinition Height="70"/>
408
+                        <RowDefinition Height="70"/>
409
+                        <RowDefinition Height="70"/>
410
+                        <RowDefinition Height="*"/>
411
+                    </Grid.RowDefinitions>
412
+                    <Grid.ColumnDefinitions>
413
+                        <ColumnDefinition Width="100"/>
414
+                        <ColumnDefinition Width="*"/>
415
+                    </Grid.ColumnDefinitions>
416
+
417
+                    <TextBlock Grid.Row="0" Grid.Column="0" Text="智能笔" FontSize="16" Foreground="#333333" FontWeight="Black" HorizontalAlignment="Right" Margin="0,30,0,0"/>
418
+                    <TextBlock Grid.Row="0" Grid.Column="1" x:Name="txbNotConnecteds"  Text="未连接" FontSize="14" Foreground="#333333" Margin="30,30,0,0"/>
419
+
420
+                    <TextBlock Grid.Row="1" Grid.Column="0" Text="视频格式" FontSize="16" Foreground="#333333" FontWeight="Black" HorizontalAlignment="Right"/>
421
+                    <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
422
+
423
+                        <RadioButton x:Name="rbnMP4"  Cursor="Hand" Style="{StaticResource radBase}" Content=" MP4" FontSize="14" Foreground="#333333" VerticalAlignment="Top" IsChecked="True"/>
424
+                        <RadioButton x:Name="rbnFLV" Cursor="Hand" Style="{StaticResource radBase}" Content=" FLV" FontSize="14" Foreground="#333333"  VerticalAlignment="Top" Margin="20,0,0,0"/>
425
+                        <RadioButton x:Name="rbnAVI" Cursor="Hand" Style="{StaticResource radBase}" Content=" AVI" FontSize="14" Foreground="#333333" Margin="20,-26,0,0" Visibility="Collapsed"/>
426
+                    </StackPanel>
409 427
 
410
-                <TextBlock Grid.Row="2" Grid.Column="0" Text="摄像头位置" FontSize="16" Foreground="#333333" FontWeight="Black" HorizontalAlignment="Right"/>
411
-                <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
412
-                    <RadioButton Cursor="Hand" x:Name="rbnRight" Content="右上" FontSize="14" Foreground="#333333" Margin="0,2,0,0" IsChecked="True"/>
413
-                    <RadioButton Cursor="Hand" x:Name="rbnRightUnder" Content="右下" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
414
-                    <RadioButton Cursor="Hand" x:Name="rbnLeft" Content="左上" FontSize="14" Foreground="#333333" Margin="20,2,0,0" />
415
-                    <RadioButton Cursor="Hand" x:Name="rbnLeftUnder" Content="左下" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
416
-                </StackPanel>
417
-                <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0" Visibility="Collapsed">
418
-                    <TextBlock Text="视频声音" FontSize="16" Foreground="#2D8CF0" Width="80"/>
419
-                    <RadioButton x:Name="rbnY" Cursor="Hand" Content="有" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
420
-                    <RadioButton x:Name="rbnN" Cursor="Hand" Content="无" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
421
-                </StackPanel>
428
+                    <TextBlock Grid.Row="2" Grid.Column="0" Text="摄像头位置" FontSize="16" Foreground="#333333" FontWeight="Black" HorizontalAlignment="Right"/>
429
+                    <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
430
+                        <RadioButton Cursor="Hand" x:Name="rbnRight" Style="{StaticResource radBase}" Content=" 右上" FontSize="14" Foreground="#333333"  VerticalAlignment="Top" Margin="0,0,0,0" IsChecked="True"/>
431
+                        <RadioButton Cursor="Hand" x:Name="rbnRightUnder" Style="{StaticResource radBase}" Content=" 右下" FontSize="14" Foreground="#333333"  VerticalAlignment="Top" Margin="20,0,0,0"/>
432
+                        <RadioButton Cursor="Hand" x:Name="rbnLeft" Style="{StaticResource radBase}" Content=" 左上" FontSize="14" Foreground="#333333"  VerticalAlignment="Top" Margin="20,0,0,0" />
433
+                        <RadioButton Cursor="Hand" x:Name="rbnLeftUnder" Style="{StaticResource radBase}" Content=" 左下" FontSize="14" Foreground="#333333"  VerticalAlignment="Top" Margin="20,0,0,0"/>
434
+                    </StackPanel>
435
+                    <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0" Visibility="Collapsed">
436
+                        <TextBlock Text="视频声音" FontSize="16" Foreground="#2D8CF0" Width="80"/>
437
+                        <RadioButton x:Name="rbnY" Cursor="Hand" Content="有" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
438
+                        <RadioButton x:Name="rbnN" Cursor="Hand" Content="无" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
439
+                    </StackPanel>
422 440
 
423 441
 
424
-                <!--接口地址-->
425
-                <TextBlock Grid.Row="3" Grid.Column="0" Text="接口地址" FontSize="16" Foreground="#333333" FontWeight="Black" HorizontalAlignment="Right" Padding="0,20,0,0"/>
426
-                <StackPanel Grid.Row="3" Grid.Column="1" Orientation="Horizontal" Margin="30,0,0,0">
427
-                    <TextBlock Text="http://" FontSize="16" Padding="0,20,5,0"/>
428
-                    <TextBox x:Name="txbInterfaceAddress" FontSize="16" Width="467" Height="41"  VerticalContentAlignment="Center" Padding="5,0,0,0"/>
429
-                </StackPanel>
442
+                    <!--接口地址-->
443
+                    <TextBlock Grid.Row="3" Grid.Column="0" Text="接口地址" FontSize="16" Foreground="#333333" FontWeight="Black" HorizontalAlignment="Right" Padding="0,20,0,0"/>
444
+                    <StackPanel Grid.Row="3" Grid.Column="1" Orientation="Horizontal" Margin="30,0,0,0">
445
+                        <TextBlock Text="http://" FontSize="16" Padding="0,20,5,0"/>
446
+                        <TextBox x:Name="txbInterfaceAddress" FontSize="16" Width="467" Height="41"  VerticalContentAlignment="Center" Padding="5,0,0,0"/>
447
+                    </StackPanel>
430 448
 
431
-                <!--上传地址-->
432
-                <TextBlock Grid.Row="4" Grid.Column="0" Text="上传地址" FontSize="16" Foreground="#333333" FontWeight="Black" HorizontalAlignment="Right" Padding="0,35,0,0"/>
433
-                <StackPanel Grid.Row="4" Grid.Column="1" Orientation="Horizontal" Margin="30,20,0,0">
434
-                    <TextBlock Text="http://" FontSize="16" Padding="0,15,5,0"/>
435
-                    <TextBox x:Name="txbImageUploadAddress" FontSize="16" Width="467" Height="41"  VerticalContentAlignment="Center" Padding="5,0,0,0"/>
436
-                </StackPanel>
449
+                    <!--上传地址-->
450
+                    <TextBlock Grid.Row="4" Grid.Column="0" Text="上传地址" FontSize="16" Foreground="#333333" FontWeight="Black" HorizontalAlignment="Right" Padding="0,35,0,0"/>
451
+                    <StackPanel Grid.Row="4" Grid.Column="1" Orientation="Horizontal" Margin="30,20,0,0">
452
+                        <TextBlock Text="http://" FontSize="16" Padding="0,15,5,0"/>
453
+                        <TextBox x:Name="txbImageUploadAddress" FontSize="16" Width="467" Height="41"  VerticalContentAlignment="Center" Padding="5,0,0,0"/>
454
+                    </StackPanel>
437 455
 
438
-                <!--下载地址-->
439
-                <TextBlock Grid.Row="5" Grid.Column="0" Text="下载地址" FontSize="16" Foreground="#333333" FontWeight="Black" HorizontalAlignment="Right" Padding="0,35,0,0"/>
440
-                <StackPanel Grid.Row="5" Grid.Column="1" Orientation="Horizontal" Margin="30,20,0,0">
441
-                    <TextBlock Text="http://" FontSize="16" Padding="0,15,5,0"/>
442
-                    <TextBox x:Name="txbPictureShowsAddress" FontSize="16" Width="467" Height="41"  VerticalContentAlignment="Center" Padding="5,0,0,0"/>
443
-                </StackPanel>
456
+                    <!--下载地址-->
457
+                    <TextBlock Grid.Row="5" Grid.Column="0" Text="下载地址" FontSize="16" Foreground="#333333" FontWeight="Black" HorizontalAlignment="Right" Padding="0,35,0,0"/>
458
+                    <StackPanel Grid.Row="5" Grid.Column="1" Orientation="Horizontal" Margin="30,20,0,0">
459
+                        <TextBlock Text="http://" FontSize="16" Padding="0,15,5,0"/>
460
+                        <TextBox x:Name="txbPictureShowsAddress" FontSize="16" Width="467" Height="41"  VerticalContentAlignment="Center" Padding="5,0,0,0"/>
461
+                    </StackPanel>
444 462
 
445
-                <TextBlock Grid.Row="6" Grid.Column="0" x:Name="txbFilePath" Text="文件路径" FontSize="16" HorizontalAlignment="Right" Foreground="#333333" FontWeight="Black" Padding="0,35,0,0" />
446
-                <StackPanel Grid.Row="6" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,20,0,0">
447
-                    <Border Background="#CDD6E0" Width="522" Height="43" CornerRadius="3" Margin="0,0,0,0">
448
-                        <Label x:Name="txbStoragePath" Background="#FFFFFF" Content="D:\" FontSize="16" Foreground="#333333" Padding="10,12,2,2" Width="520" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
449
-                    </Border>
450
-                    <!--浏览按钮-->
451
-                    <Button Cursor="Hand" x:Name="btnBrowse" Content="浏览" FontSize="18" Width="80" Height="43" Margin="18,0,0,0" Click="BtnBrowse_Click">
452
-                        <Button.Template>
453
-                            <ControlTemplate TargetType="{x:Type Button}">
454
-                                <Border
463
+                    <TextBlock Grid.Row="6" Grid.Column="0" x:Name="txbFilePath" Text="文件路径" FontSize="16" HorizontalAlignment="Right" Foreground="#333333" FontWeight="Black" Padding="0,35,0,0" />
464
+                    <StackPanel Grid.Row="6" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,20,0,0">
465
+                        <Border Background="#CDD6E0" Width="522" Height="43" CornerRadius="3" Margin="0,0,0,0">
466
+                            <Label x:Name="txbStoragePath" Background="#FFFFFF" Content="D:\" FontSize="16" Foreground="#333333" Padding="10,12,2,2" Width="520" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
467
+                        </Border>
468
+                        <!--浏览按钮-->
469
+                        <Button Cursor="Hand" x:Name="btnBrowse" Content="浏览" FontSize="18" Width="80" Height="43" Margin="18,0,0,0" Click="BtnBrowse_Click">
470
+                            <Button.Template>
471
+                                <ControlTemplate TargetType="{x:Type Button}">
472
+                                    <Border
455 473
                                 BorderBrush="{TemplateBinding Control.BorderBrush}"
456 474
                                 BorderThickness="1"
457 475
                                 CornerRadius="2">
458
-                                    <Border.Background>#EBEFF3</Border.Background>
459
-                                    <ContentPresenter
476
+                                        <Border.Background>#EBEFF3</Border.Background>
477
+                                        <ContentPresenter
460 478
                                     HorizontalAlignment="Center"
461 479
                                     VerticalAlignment="Center"
462 480
                                     Content="{TemplateBinding ContentControl.Content}" />
463
-                                </Border>
464
-                            </ControlTemplate>
465
-                        </Button.Template>
466
-                    </Button>
467
-                </StackPanel>
481
+                                    </Border>
482
+                                </ControlTemplate>
483
+                            </Button.Template>
484
+                        </Button>
485
+                    </StackPanel>
468 486
 
469
-                <TextBlock Grid.Row="7" Grid.Column="0" Text="版本号" FontSize="16" HorizontalAlignment="Right" Foreground="#333333" FontWeight="Black" Margin="0,30,0,0"/>
470
-                <StackPanel Grid.Row="7" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,30,0,0">
471
-                    <TextBlock x:Name="txbv" Text="V0.0.0" FontSize="16" Foreground="#333333"/>
472
-                </StackPanel>
487
+                    <TextBlock Grid.Row="7" Grid.Column="0" Text="版本号" FontSize="16" HorizontalAlignment="Right" Foreground="#333333" FontWeight="Black" Margin="0,30,0,0"/>
488
+                    <StackPanel Grid.Row="7" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,30,0,0">
489
+                        <TextBlock x:Name="txbv" Text="V0.0.0" FontSize="16" Foreground="#333333"/>
490
+                    </StackPanel>
473 491
 
474
-                <TextBlock Grid.Row="8" Grid.Column="0" Text="版权所有" FontSize="16" HorizontalAlignment="Right" Foreground="#333333" FontWeight="Black" Margin="0,30,0,0"/>
475
-                <StackPanel Grid.Row="8" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,30,0,0">
476
-                    <TextBlock Text="河南星火燎原软件科技有限公司" FontSize="14" Foreground="#333333"/>
477
-                </StackPanel>
492
+                    <TextBlock Grid.Row="8" Grid.Column="0" Text="版权所有" FontSize="16" HorizontalAlignment="Right" Foreground="#333333" FontWeight="Black" Margin="0,30,0,0"/>
493
+                    <StackPanel Grid.Row="8" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,30,0,0">
494
+                        <TextBlock Text="河南星火燎原软件科技有限公司" FontSize="14" Foreground="#333333"/>
495
+                    </StackPanel>
478 496
 
479
-                <TextBlock Grid.Row="9" Grid.Column="0" Text="录屏快捷键" FontSize="16" HorizontalAlignment="Right" Foreground="#333333" FontWeight="Black" Margin="0,30,0,0"/>
480
-                <StackPanel Grid.Row="9" Grid.Column="1">
481
-                    <TextBlock  FontSize="14" Foreground="#333333" Text="开始/暂停:Ctrl+F5     停止:Ctrl+S     退出讲评:鼠标右键" Margin="30,30,0,0"/>
482
-                </StackPanel>
483
-                <!--第四行 开始按钮-->
484
-                <Button Cursor="Hand" Grid.Row="10" Grid.ColumnSpan="2" x:Name="btnSave" Content="保存" FontSize="18" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="115" Height="45" Margin="10,0,10,0" Click="BtnSave_Click">
485
-                    <Button.Template>
486
-                        <ControlTemplate TargetType="{x:Type Button}">
487
-                            <Border
497
+                    <TextBlock Grid.Row="9" Grid.Column="0" Text="录屏快捷键" FontSize="16" HorizontalAlignment="Right" Foreground="#333333" FontWeight="Black" Margin="0,30,0,0"/>
498
+                    <StackPanel Grid.Row="9" Grid.Column="1">
499
+                        <TextBlock  FontSize="14" Foreground="#333333" Text="开始/暂停:Ctrl+F5     停止:Ctrl+S     退出讲评:鼠标右键" Margin="30,30,0,0"/>
500
+                    </StackPanel>
501
+                    <!--第四行 开始按钮-->
502
+                    <Button Cursor="Hand" Grid.Row="10" Grid.ColumnSpan="2" x:Name="btnSave" Content="保存" FontSize="18" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="115" Height="45" Margin="10,10,10,10" Click="BtnSave_Click">
503
+                        <Button.Template>
504
+                            <ControlTemplate TargetType="{x:Type Button}">
505
+                                <Border
488 506
                                 BorderBrush="{TemplateBinding Control.BorderBrush}"
489 507
                                 BorderThickness="1"
490 508
                                 CornerRadius="2">
491
-                                <Border.Background>#2D8CF0</Border.Background>
492
-                                <ContentPresenter
509
+                                    <Border.Background>#2D8CF0</Border.Background>
510
+                                    <ContentPresenter
493 511
                                     HorizontalAlignment="Center"
494 512
                                     VerticalAlignment="Center"
495 513
                                     Content="{TemplateBinding ContentControl.Content}" />
496
-                            </Border>
497
-                        </ControlTemplate>
498
-                    </Button.Template>
499
-                </Button>
500
-            </Grid>
514
+                                </Border>
515
+                            </ControlTemplate>
516
+                        </Button.Template>
517
+                    </Button>
518
+                </Grid>
519
+            </ScrollViewer>
501 520
             <!--上传-->
502 521
             <Grid Grid.Row="1" x:Name="gridUpload" Visibility="Hidden">
503 522
                 <Border Background="#EFF1F8">
@@ -596,7 +615,6 @@
596 615
                                 </Button.Content>
597 616
                             </Button>
598 617
                         </StackPanel>
599
-
600 618
                     </Grid>
601 619
                 </Border>
602 620
             </Grid>
@@ -613,8 +631,8 @@
613 631
             </Grid>
614 632
 
615 633
             <Grid Grid.Row="2" Background="#EFF1F8" Margin="0,0,0,0">
616
-                <StackPanel Orientation="Horizontal" Margin="0,0,0,0">
617
-                    <TextBlock Text="颜色:" FontSize="14" Padding="10,5,0,0"/>
634
+                <StackPanel Orientation="Horizontal" Margin="0,5,0,5">
635
+                    <TextBlock Text="颜色:" FontSize="14" Padding="10,3,0,0"/>
618 636
                     <Button Cursor="Hand" x:Name="btnWhite" Background="#FFFFFF" Width="20" Height="20" Click="BtnWhite_Click" Margin="0,2,0,0" Visibility="Collapsed"/>
619 637
 
620 638
                     <Border Background="#666666" Width="20" Height="20" Margin="5,2,0,0">
@@ -649,22 +667,21 @@
649 667
                             <Image x:Name="imgBlue" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
650 668
                         </Button>
651 669
                     </Border>
652
-                    <TextBlock Text="粗细:" FontSize="14" Padding="15,0,0,0" Margin="5,5,0,0"/>
653
-                    <RadioButton Cursor="Hand" x:Name="rbnFine" Content="细" FontSize="14" Margin="0,7,0,0" IsChecked="True" Click="RbnFine_Click"/>
654
-                    <RadioButton Cursor="Hand" x:Name="rbnIn" Content="中" FontSize="14" Margin="5,7,0,0" Click="RbnIn_Click"/>
655
-                    <RadioButton Cursor="Hand" x:Name="rbnCrude" Content="粗" FontSize="14" Margin="5,7,0,0" Click="RbnCrude_Click"/>
670
+                    <TextBlock Text="粗细:" FontSize="14" Padding="15,0,0,0" Margin="5,3,0,0"/>
671
+                    <RadioButton Cursor="Hand" x:Name="rbnFine" Content=" 细" Style="{StaticResource radBase}" FontSize="14" Margin="0,4,0,0" IsChecked="True" Click="RbnFine_Click"/>
672
+                    <RadioButton Cursor="Hand" x:Name="rbnIn" Content=" 中" Style="{StaticResource radBase}" FontSize="14" Margin="5,4,0,0" Click="RbnIn_Click"/>
673
+                    <RadioButton Cursor="Hand" x:Name="rbnCrude" Content=" 粗" Style="{StaticResource radBase}" FontSize="14" Margin="5,4,0,0" Click="RbnCrude_Click"/>
656 674
                     <StackPanel Orientation="Horizontal">
657
-                        <TextBlock Text="摄像头:" FontSize="14" Padding="15,6,0,0"/>
658
-                        <RadioButton Cursor="Hand" x:Name="rbnOpen" Content="开" FontSize="14" Margin="0,7,0,0" Click="RbnOpen_Click"/>
659
-                        <RadioButton Cursor="Hand" x:Name="rbnTurnOff" Content="关" FontSize="14" Margin="5,7,0,0" IsChecked="True" Click="RbnTurnOff_Click"/>
675
+                        <TextBlock Text="摄像头:" FontSize="14" Padding="20,3,0,0"/>
676
+                        <RadioButton Cursor="Hand" x:Name="rbnOpen" Content=" 开" Style="{StaticResource radBase}" FontSize="14" Margin="0,4,0,0" Click="RbnOpen_Click"/>
677
+                        <RadioButton Cursor="Hand" x:Name="rbnTurnOff" Content=" 关" Style="{StaticResource radBase}" FontSize="14" Margin="5,4,0,0" IsChecked="True" Click="RbnTurnOff_Click"/>
660 678
                     </StackPanel>
661 679
                 </StackPanel>
662
-                <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,10,0">
680
+                <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,5,10,5">
663 681
                     <TextBlock Text="智能笔状态:" FontSize="14" Padding="0,4,0,0"/>
664 682
                     <TextBlock x:Name="txbNotConnected" Text="未连接" FontSize="14" Padding="0,4,5,0"/>
665 683
                 </StackPanel>
666 684
             </Grid>
667
-
668 685
         </Grid>
669 686
     </Viewbox>
670 687
 </Window>

+ 152
- 148
XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs Datei anzeigen

@@ -564,124 +564,131 @@ namespace XHWK.WKTool
564 564
         /// <param name="e"></param>
565 565
         private void BtnSave_Click(object sender, RoutedEventArgs e)
566 566
         {
567
-            ImgRecord.Visibility = Visibility.Visible;//设置结束时可录制
568
-            ImgRecordTwo.Visibility = Visibility.Collapsed;//设置结束时可录制
569
-            BtnRecord.IsEnabled = true;//设置结束时可录制
570
-
571
-            if (!string.IsNullOrWhiteSpace(txbInterfaceAddress.Text))
572
-            {
573
-                string ApplicationData = APP.dataPath + "interfaceAddress.txt";
574
-                string temp = "http://" + txbInterfaceAddress.Text;
575
-                System.IO.File.WriteAllText(ApplicationData, temp, Encoding.Default);
576
-            }
577
-            else
578
-            {
579
-                MessageWindow.Show("接口地址未输入");
580
-                return;
581
-            }
582
-            if (!string.IsNullOrWhiteSpace(txbImageUploadAddress.Text))//图片上传地址
583
-            {
584
-                string ApplicationData = APP.dataPath + "imageUploadAddress.txt";
585
-                string temp = "http://" + txbImageUploadAddress.Text + "/";
586
-                System.IO.File.WriteAllText(ApplicationData, temp, Encoding.Default);
587
-            }
588
-            else
589
-            {
590
-                MessageWindow.Show("上传地址未输入");
591
-                return;
592
-            }
593
-            if (!string.IsNullOrWhiteSpace(txbPictureShowsAddress.Text))
594
-            {
595
-                string ApplicationData = APP.dataPath + "pictureShowsAddress.txt";
596
-                string temp = "http://" + txbPictureShowsAddress.Text + "/static/";
597
-                System.IO.File.WriteAllText(ApplicationData, temp, Encoding.Default);
598
-            }
599
-            else
600
-            {
601
-                MessageWindow.Show("下载地址未输入");
602
-                return;
603
-            }
604
-            if (!APP.apiUrl.Equals("http://" + txbInterfaceAddress.Text))
567
+            try
605 568
             {
606
-                APP.apiUrl = "http://" + txbInterfaceAddress.Text;
607
-              
608
-                if(!txbLoginType.Text.Equals("未登录"))
569
+                ImgRecord.Visibility = Visibility.Visible;//设置结束时可录制
570
+                ImgRecordTwo.Visibility = Visibility.Collapsed;//设置结束时可录制
571
+                BtnRecord.IsEnabled = true;//设置结束时可录制
572
+
573
+                if (!string.IsNullOrWhiteSpace(txbInterfaceAddress.Text))
609 574
                 {
610
-                    LoginType();
611
-                    MessageWindow.Show("接口地址已修改,请重新登陆!");
575
+                    string ApplicationData = APP.dataPath + "interfaceAddress.txt";
576
+                    string temp = "http://" + txbInterfaceAddress.Text;
577
+                    System.IO.File.WriteAllText(ApplicationData, temp, Encoding.Default);
612 578
                 }
613
-            }
614
-            if (!APP.uploadUrl.Equals(txbImageUploadAddress.Text))
615
-            {
616
-                APP.uploadUrl = "http://" + txbImageUploadAddress.Text + "/";
617
-            }
618
-            if (!APP.showImageUrl.Equals(txbPictureShowsAddress.Text))
619
-            {
620
-                APP.showImageUrl = "http://" + txbPictureShowsAddress.Text + "/static/";
621
-            }
622
-            if (rbnMP4.IsChecked == true)
623
-            {
624
-                //存储文件
625
-                FileToolsCommon.SetConfigValue("VideoType", "1");
626
-            }
627
-            else if (rbnFLV.IsChecked == true)
628
-            {
629
-                FileToolsCommon.SetConfigValue("VideoType", "2");
630
-            }
631
-            else
632
-            {
633
-                FileToolsCommon.SetConfigValue("VideoType", "3");
634
-            }
635
-            if (rbnY.IsChecked == true)
636
-            {
637
-                FileToolsCommon.SetConfigValue("IsSound", "true");
638
-            }
639
-            else
640
-            {
641
-                FileToolsCommon.SetConfigValue("IsSound", "false");
642
-            }
643
-            ///  < !--摄像头位置 1.右上 2.左上 3.右下 4.左下-- >
644
-            if (rbnRight.IsChecked == true)
645
-            {
646
-                FileToolsCommon.SetConfigValue("CameraPosition", "1");
647
-            }
648
-            else if (rbnLeft.IsChecked == true)
649
-            {
650
-                FileToolsCommon.SetConfigValue("CameraPosition", "2");
651
-            }
652
-            else if (rbnRightUnder.IsChecked == true)
653
-            {
654
-                FileToolsCommon.SetConfigValue("CameraPosition", "3");
655
-            }
656
-            else if (rbnLeftUnder.IsChecked == true)
657
-            {
658
-                FileToolsCommon.SetConfigValue("CameraPosition", "4");
659
-            }
579
+                else
580
+                {
581
+                    MessageWindow.Show("接口地址未输入");
582
+                    return;
583
+                }
584
+                if (!string.IsNullOrWhiteSpace(txbImageUploadAddress.Text))//图片上传地址
585
+                {
586
+                    string ApplicationData = APP.dataPath + "imageUploadAddress.txt";
587
+                    string temp = "http://" + txbImageUploadAddress.Text + "/";
588
+                    System.IO.File.WriteAllText(ApplicationData, temp, Encoding.Default);
589
+                }
590
+                else
591
+                {
592
+                    MessageWindow.Show("上传地址未输入");
593
+                    return;
594
+                }
595
+                if (!string.IsNullOrWhiteSpace(txbPictureShowsAddress.Text))
596
+                {
597
+                    string ApplicationData = APP.dataPath + "pictureShowsAddress.txt";
598
+                    string temp = "http://" + txbPictureShowsAddress.Text + "/static/";
599
+                    System.IO.File.WriteAllText(ApplicationData, temp, Encoding.Default);
600
+                }
601
+                else
602
+                {
603
+                    MessageWindow.Show("下载地址未输入");
604
+                    return;
605
+                }
606
+                if (!APP.apiUrl.Equals("http://" + txbInterfaceAddress.Text))
607
+                {
608
+                    APP.apiUrl = "http://" + txbInterfaceAddress.Text;
660 609
 
661
-            if (rbnMP4.IsChecked == true)
662
-            {
663
-                FileToolsCommon.SetConfigValue("VideoType", "1");
664
-            }
665
-            else if (rbnFLV.IsChecked == true)
666
-            {
667
-                FileToolsCommon.SetConfigValue("VideoType", "2");
668
-            }
669
-            else if (rbnAVI.IsChecked == true)
670
-            {
671
-                FileToolsCommon.SetConfigValue("VideoType", "3");
610
+                    if (!txbLoginType.Text.Equals("未登录"))
611
+                    {
612
+                        LoginType();
613
+                        MessageWindow.Show("接口地址已修改,请重新登陆!");
614
+                    }
615
+                }
616
+                if (!APP.uploadUrl.Equals(txbImageUploadAddress.Text))
617
+                {
618
+                    APP.uploadUrl = "http://" + txbImageUploadAddress.Text + "/";
619
+                }
620
+                if (!APP.showImageUrl.Equals(txbPictureShowsAddress.Text))
621
+                {
622
+                    APP.showImageUrl = "http://" + txbPictureShowsAddress.Text + "/static/";
623
+                }
624
+                if (rbnMP4.IsChecked == true)
625
+                {
626
+                    //存储文件
627
+                    FileToolsCommon.SetConfigValue("VideoType", "1");
628
+                }
629
+                else if (rbnFLV.IsChecked == true)
630
+                {
631
+                    FileToolsCommon.SetConfigValue("VideoType", "2");
632
+                }
633
+                else
634
+                {
635
+                    FileToolsCommon.SetConfigValue("VideoType", "3");
636
+                }
637
+                if (rbnY.IsChecked == true)
638
+                {
639
+                    FileToolsCommon.SetConfigValue("IsSound", "true");
640
+                }
641
+                else
642
+                {
643
+                    FileToolsCommon.SetConfigValue("IsSound", "false");
644
+                }
645
+                ///  < !--摄像头位置 1.右上 2.左上 3.右下 4.左下-- >
646
+                if (rbnRight.IsChecked == true)
647
+                {
648
+                    FileToolsCommon.SetConfigValue("CameraPosition", "1");
649
+                }
650
+                else if (rbnLeft.IsChecked == true)
651
+                {
652
+                    FileToolsCommon.SetConfigValue("CameraPosition", "2");
653
+                }
654
+                else if (rbnRightUnder.IsChecked == true)
655
+                {
656
+                    FileToolsCommon.SetConfigValue("CameraPosition", "3");
657
+                }
658
+                else if (rbnLeftUnder.IsChecked == true)
659
+                {
660
+                    FileToolsCommon.SetConfigValue("CameraPosition", "4");
661
+                }
662
+
663
+                if (rbnMP4.IsChecked == true)
664
+                {
665
+                    FileToolsCommon.SetConfigValue("VideoType", "1");
666
+                }
667
+                else if (rbnFLV.IsChecked == true)
668
+                {
669
+                    FileToolsCommon.SetConfigValue("VideoType", "2");
670
+                }
671
+                else if (rbnAVI.IsChecked == true)
672
+                {
673
+                    FileToolsCommon.SetConfigValue("VideoType", "3");
674
+                }
675
+                APP.CameraPosition = FileToolsCommon.GetConfigValue("CameraPosition");
676
+                GridMain.Visibility = Visibility.Visible;
677
+                gridSetUp.Visibility = Visibility.Collapsed;
678
+                imgPlayerRight.Visibility = Visibility.Collapsed;
679
+                imgPlayerLeft.Visibility = Visibility.Collapsed;
680
+                imgPlayerRightUnder.Visibility = Visibility.Collapsed;
681
+                imgPlayerLeftUnder.Visibility = Visibility.Collapsed;
682
+                if (!txbStoragePath.Content.ToString().Equals(APP.WKData.WkPath))
683
+                {
684
+                    //存储文件
685
+                    FileToolsCommon.SetConfigValue("VideoSavePath", txbStoragePath.Content.ToString());
686
+                    MessageWindow.Show("路径已变更,下次创建微课时自动生效!!!");
687
+                }
672 688
             }
673
-            APP.CameraPosition = FileToolsCommon.GetConfigValue("CameraPosition");
674
-            GridMain.Visibility = Visibility.Visible;
675
-            gridSetUp.Visibility = Visibility.Collapsed;
676
-            imgPlayerRight.Visibility = Visibility.Collapsed;
677
-            imgPlayerLeft.Visibility = Visibility.Collapsed;
678
-            imgPlayerRightUnder.Visibility = Visibility.Collapsed;
679
-            imgPlayerLeftUnder.Visibility = Visibility.Collapsed;
680
-            if (!txbStoragePath.Content.ToString().Equals(APP.WKData.WkPath))
689
+            catch (Exception ex)
681 690
             {
682
-                //存储文件
683
-                FileToolsCommon.SetConfigValue("VideoSavePath", txbStoragePath.Content.ToString());
684
-                MessageWindow.Show("路径已变更,下次创建微课时自动生效!!!");
691
+                LogHelper.WriteErrLog("XHMicroLessonSystemWindow(设置保存事件报错:)" + ex.Message,ex);
685 692
             }
686 693
         }
687 694
         /// <summary>
@@ -986,7 +993,7 @@ namespace XHWK.WKTool
986 993
                 };
987 994
 
988 995
 
989
-                APP.myloading.Show();
996
+                //APP.myloading.Show();
990 997
                 APP.BackgroundWorkerHelper.RunWorkerAsync(InvokeServering, InvokeServerCompate);
991 998
 
992 999
 
@@ -1019,13 +1026,16 @@ namespace XHWK.WKTool
1019 1026
             Dispatcher.Invoke(new Action(() =>
1020 1027
             {
1021 1028
                 result = ofd.ShowDialog();
1022
-                if (result == System.Windows.Forms.DialogResult.OK)
1029
+            }));
1030
+            if (result == System.Windows.Forms.DialogResult.OK)
1023 1031
                 {
1024 1032
                     if (ofd.FileName != "")
1033
+                    {
1034
+                    Dispatcher.Invoke(new Action(() =>
1025 1035
                     {
1026 1036
                         APP.myloading.Show();
1027
-
1028 1037
                         myblackboard.changepage(APP.pageData.pagenum);
1038
+                    }));
1029 1039
                         #region PPT转PDF
1030 1040
                         string filepath = ofd.FileName;
1031 1041
                         string path = ofd.SafeFileName.Replace(".ppt", "").Replace(".pptx", "").Trim();
@@ -1077,8 +1087,11 @@ namespace XHWK.WKTool
1077 1087
                                         File.Delete(filePathOutPut);
1078 1088
                                     }
1079 1089
                                 }
1080
-                                #endregion
1081
-                                string[] page = images.ToArray();
1090
+                            #endregion
1091
+
1092
+                            Dispatcher.Invoke(new Action(() =>
1093
+                            {
1094
+                            string[] page = images.ToArray();
1082 1095
                                 int num = 0;
1083 1096
                                 for (int i = 0 + APP.pageData.pagenum; i < page.Length + APP.pageData.pagenum; i++)//给画板模型加图片路径
1084 1097
                                 {
@@ -1101,6 +1114,7 @@ namespace XHWK.WKTool
1101 1114
                                         };
1102 1115
                                         APP.PageDrawList.Add(model_DrawData);
1103 1116
                                     }
1117
+                      
1104 1118
                                     ImgPrint.Visibility = Visibility.Visible;//导入成功可打印
1105 1119
                                     ImgPrintTwo.Visibility = Visibility.Collapsed;
1106 1120
                                     btnPrint.IsEnabled = true;
@@ -1130,11 +1144,11 @@ namespace XHWK.WKTool
1130 1144
                                     ImgScreenshotTwo.Visibility = Visibility.Collapsed;
1131 1145
                                     btnScreenshot.IsEnabled = true;
1132 1146
                                 }
1133
-                                APP.myloading.Hide();
1134
-                            }
1147
+                           
1148
+                            }));
1149
+                        }
1135 1150
                             catch (Exception ex)
1136 1151
                             {
1137
-                                APP.myloading.Hide();
1138 1152
                                 MessageWindow.Show("文件无效或者文件被加密!");
1139 1153
                                 LogHelper.WriteErrLog("【打开ppt】(OpenDialog PPT)" + ex.Message, ex);
1140 1154
                             }
@@ -1238,6 +1252,8 @@ namespace XHWK.WKTool
1238 1252
                                 string paths = AppDomain.CurrentDomain.BaseDirectory + "Temp\\";
1239 1253
                                 string[] page = ConvertWordToImage(filepath, paths, "", 0, 0, null, 0).ToArray();
1240 1254
                                 int num = 0;
1255
+                            Dispatcher.Invoke(new Action(() =>
1256
+                            {
1241 1257
                                 for (int i = 0 + APP.pageData.pagenum; i < page.Length + APP.pageData.pagenum; i++)//给画板模型加图片路径
1242 1258
                                 {
1243 1259
                                     if (APP.PageDrawList != null && APP.PageDrawList.Count > i)
@@ -1290,8 +1306,9 @@ namespace XHWK.WKTool
1290 1306
                                     ImgScreenshotTwo.Visibility = Visibility.Collapsed;
1291 1307
                                     btnScreenshot.IsEnabled = true;
1292 1308
                                 }
1293
-                                APP.myloading.Hide();
1294
-                            }
1309
+                                
1310
+                            }));
1311
+                        }
1295 1312
                             catch (Exception ex)
1296 1313
                             {
1297 1314
                                 APP.myloading.Hide();
@@ -1300,31 +1317,6 @@ namespace XHWK.WKTool
1300 1317
                         }
1301 1318
                     }
1302 1319
                 }
1303
-            }
1304
-                   ));
1305
-
1306
-
1307
-
1308
-
1309
-
1310
-
1311
-
1312
-
1313
-
1314
-
1315
-
1316
-
1317
-
1318
-
1319
-
1320
-
1321
-
1322
-
1323
-
1324
-
1325
-
1326
-
1327
-
1328 1320
             //OpenDialog();
1329 1321
             return "";
1330 1322
         }
@@ -1335,7 +1327,7 @@ namespace XHWK.WKTool
1335 1327
         public void InvokeServerCompate(object obj)
1336 1328
         {
1337 1329
             //APP.myloading.Hide();
1338
-           
1330
+            APP.myloading.Hide();
1339 1331
         }
1340 1332
         /// <summary>
1341 1333
         /// 导入文档
@@ -4718,5 +4710,17 @@ namespace XHWK.WKTool
4718 4710
         {
4719 4711
             HideAngleBorder();
4720 4712
         }
4713
+        /// <summary>
4714
+        /// 鼠标左键点击事件
4715
+        /// </summary>
4716
+        /// <param name="sender"></param>
4717
+        /// <param name="e"></param>
4718
+        private void Window_MouseLeftButtonDown_1(object sender, MouseButtonEventArgs e)
4719
+        {
4720
+            if (RectImgBorder.Visibility != Visibility.Hidden)
4721
+            {
4722
+                HideAngleBorder();
4723
+            }
4724
+        }
4721 4725
     }
4722 4726
 }

+ 2
- 0
XHWK.WKTool/XHWK.WKTool.csproj Datei anzeigen

@@ -1607,6 +1607,8 @@
1607 1607
   </ItemGroup>
1608 1608
   <ItemGroup>
1609 1609
     <Resource Include="Images\VideoList_OK.png" />
1610
+    <Resource Include="Images\rdo_no.png" />
1611
+    <Resource Include="Images\rdo_yes.png" />
1610 1612
   </ItemGroup>
1611 1613
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
1612 1614
 </Project>

Laden…
Abbrechen
Speichern