Pārlūkot izejas kodu

上传优化

tags/录制修改前
zhangxueyang pirms 4 gadiem
vecāks
revīzija
067699adec

+ 48
- 0
XHWK.WKTool/DAL/DAL_Upload.cs Parādīt failu

@@ -152,6 +152,54 @@ namespace XHWK.WKTool.DAL
152 152
                     return false;
153 153
                 }
154 154
                 else
155
+                {
156
+                    return true;
157
+                }
158
+
159
+            }
160
+            catch (Exception ex)
161
+            {
162
+                LogHelper.WriteErrLog("【视频上传】(UploadVideo)视频上传失败:" + ex.Message, ex);
163
+            }
164
+            return false;
165
+        }
166
+        /// <summary>
167
+        /// 上传视频
168
+        /// </summary>
169
+        /// <returns></returns>
170
+        public bool UploadVideoTwo(string VideoGuid, out string ErrMessage) 
171
+        {
172
+            ErrMessage = "";
173
+            try
174
+            {
175
+                Model_Video VideoInfo = null;
176
+                foreach (Model_WKData Vdata in APP.WKDataList)
177
+                {
178
+                    if (Vdata.VideoList == null)
179
+                        continue;
180
+                    foreach (Model_Video videoinfo in Vdata.VideoList)
181
+                    {
182
+                        if (videoinfo.FileGuid == VideoGuid)
183
+                        {
184
+                            VideoInfo = videoinfo;
185
+                            break;
186
+                        }
187
+                    }
188
+                    if (VideoInfo != null)
189
+                        break;
190
+                }
191
+                if (VideoInfo == null)
192
+                {
193
+                    ErrMessage = "未找到课程!";
194
+                    return false;
195
+                }
196
+                string UploadUrl = FileRequestAddress /*"http://192.168.2.18:8908" */+ "/chunkdb/upchunk";//zxyceshi
197
+                if (VideoInfo.IsUpload)
198
+                {
199
+                    ErrMessage = "视频已上传";
200
+                    return false;
201
+                }
202
+                else
155 203
                 {
156 204
                     if (string.IsNullOrWhiteSpace(VideoInfo.FileMD5))
157 205
                     {

+ 7
- 7
XHWK.WKTool/PrintWindow.xaml.cs Parādīt failu

@@ -85,13 +85,13 @@ namespace XHWK.WKTool
85 85
             LatticeFileHelper.GeneratingPDF(pdf, tpf, out pr, out msg, out outPut/*, pyte*/);
86 86
             if (pr == 0)
87 87
             {
88
-                outPut = outPut.Replace("[", "").Replace("]", "").Replace("\"", "").Trim();
89
-                APP.OutPut = outPut.Split(',');
90
-                string []page= outPut.Split(',');
91
-                for(int i=0;i<page.Length;i++) //增加页码编号
92
-                {
93
-                    APP.PageDrawList[i].PageCode = page[i];
94
-                }
88
+                //outPut = outPut.Replace("[", "").Replace("]", "").Replace("\"", "").Trim();
89
+                //APP.OutPut = outPut.Split(',');
90
+                //string []page= outPut.Split(',');
91
+                //for(int i=0;i<page.Length;i++) //增加页码编号
92
+                //{
93
+                //    APP.PageDrawList[i].PageCode = page[i];
94
+                //}
95 95
               
96 96
                 //string defa = string.Empty;
97 97
                 //List<string> defaList = LatticeFileHelper.GetPrinterList(out defa);

+ 83
- 57
XHWK.WKTool/UploadWindow.xaml.cs Parādīt failu

@@ -1,4 +1,5 @@
1
-using System;
1
+using Common.system;
2
+using System;
2 3
 using System.Collections.Generic;
3 4
 using System.Collections.ObjectModel;
4 5
 using System.Linq;
@@ -42,6 +43,10 @@ namespace XHWK.WKTool
42 43
         /// 文件类型
43 44
         /// </summary>
44 45
         private string Suffix = string.Empty;
46
+        /// <summary>
47
+        /// 唯一编号
48
+        /// </summary>
49
+        private string Guid = string.Empty;
45 50
         public UploadWindow()
46 51
         {
47 52
             InitializeComponent();
@@ -49,11 +54,12 @@ namespace XHWK.WKTool
49 54
         /// <summary>
50 55
         /// 初始化
51 56
         /// </summary>
52
-        public void Initialize(string _resourcename,long _resourcesize,string _suffix) 
57
+        public void Initialize(string _resourcename,long _resourcesize,string _suffix,string _guid) 
53 58
         {
54 59
             Resourcename = _resourcename;
55 60
             Resourcesize = _resourcesize;
56 61
             Suffix = _suffix;
62
+            Guid = _guid;
57 63
             Tsubjectbook();
58 64
         }
59 65
         /// <summary>
@@ -184,65 +190,85 @@ namespace XHWK.WKTool
184 190
         /// <param name="e"></param>
185 191
         private void BtnStart_Click(object sender, RoutedEventArgs e)
186 192
         {
187
-            //        converted: 0
188
-            //createid: 80
189
-            //directorid: 1009
190
-            //duration: 39
191
-            //imgUrl: ""
192
-            //level: 2
193
-            //lsbid: 40
194
-            //mp4code: "h264"
195
-            //resourcebelong: 3
196
-            //resourceclass: 2
197
-            //resourcecover: "12/resource/20200917/4f297df0-f8c0-11ea-adf5-81f24b97d4ff/weather_pic.jpg"
198
-            //resourcename: "weather_pic"
199
-            //resourcesize: 6105268
200
-            //resourcetype: 0
201
-            //resourceurl: "12/resource/20200917/4f297df0-f8c0-11ea-adf5-81f24b97d4ff/weather_pic.mp4"
202
-            //schoolid: 12
203
-            //suffix: "mp4"
204
-            //uid: 80
205
-            Model_ResourceAdd model_ResourceAdd = new Model_ResourceAdd();
206
-            model_ResourceAdd.converted = 0;
207
-            model_ResourceAdd.createid = APP.UserInfo.Userid;
208
-            model_ResourceAdd.directorid= Convert.ToInt32(cmbTeachingMaterial.SelectedValue.ToString());
209
-            model_ResourceAdd.duration = APP.ResourceAddTwo.duration;
210
-            model_ResourceAdd.imgUrl = "";
211
-            model_ResourceAdd.level = 2;
212
-            model_ResourceAdd.lsbid= Convert.ToInt32(book_list.SelectedValue.ToString());
213
-            model_ResourceAdd.mp4code = APP.ResourceAddTwo.mp4code;
214
-            model_ResourceAdd.resourcebelong = 3;
215
-            model_ResourceAdd.resourceclass = 2;
216
-            model_ResourceAdd.resourcecover = APP.ResourceAddTwo.coverpath;
217
-            model_ResourceAdd.resourcename = Resourcename;
218
-            model_ResourceAdd.resourcesize = Resourcesize;//zxy 文件大小
219
-            model_ResourceAdd.resourcetype = 0;
220
-            model_ResourceAdd.resourceurl = APP.ResourceAddTwo.videopath;
221
-            model_ResourceAdd.schoolid = APP.UserInfo.Schoolid;
222
-            if(Suffix.Equals("FLV"))
223
-            {
224
-                Suffix = "flv";
225
-            }
226
-            else if(Suffix.Equals("AVI"))
227
-            {
228
-                Suffix = "avi";
229
-            }
230
-            else
231
-            {
232
-                Suffix = "mp4";
233
-            }
234 193
 
235
-            model_ResourceAdd.suffix = Suffix;
236
-            //model_ResourceAdd.uid = 0;//zxy
237
-            int code = @interface.ResourceAdd(model_ResourceAdd);
238
-            if(code==0)
194
+            try
239 195
             {
240
-                MessageWindow.Show("视频上传成功!");
241
-                Hide();
196
+                DAL_Upload dAL_Upload = new DAL_Upload();
197
+                if (dAL_Upload.UploadVideoTwo(Guid, out string ErrMessage))
198
+                {
199
+
200
+
201
+                    //        converted: 0
202
+                    //createid: 80
203
+                    //directorid: 1009
204
+                    //duration: 39
205
+                    //imgUrl: ""
206
+                    //level: 2
207
+                    //lsbid: 40
208
+                    //mp4code: "h264"
209
+                    //resourcebelong: 3
210
+                    //resourceclass: 2
211
+                    //resourcecover: "12/resource/20200917/4f297df0-f8c0-11ea-adf5-81f24b97d4ff/weather_pic.jpg"
212
+                    //resourcename: "weather_pic"
213
+                    //resourcesize: 6105268
214
+                    //resourcetype: 0
215
+                    //resourceurl: "12/resource/20200917/4f297df0-f8c0-11ea-adf5-81f24b97d4ff/weather_pic.mp4"
216
+                    //schoolid: 12
217
+                    //suffix: "mp4"
218
+                    //uid: 80
219
+                    Model_ResourceAdd model_ResourceAdd = new Model_ResourceAdd();
220
+                    model_ResourceAdd.converted = 0;
221
+                    model_ResourceAdd.createid = APP.UserInfo.Userid;
222
+                    model_ResourceAdd.directorid = Convert.ToInt32(cmbTeachingMaterial.SelectedValue.ToString());
223
+                    model_ResourceAdd.duration = APP.ResourceAddTwo.duration;
224
+                    model_ResourceAdd.imgUrl = "";
225
+                    model_ResourceAdd.level = 2;
226
+                    model_ResourceAdd.lsbid = Convert.ToInt32(book_list.SelectedValue.ToString());
227
+                    model_ResourceAdd.mp4code = APP.ResourceAddTwo.mp4code;
228
+                    model_ResourceAdd.resourcebelong = 3;
229
+                    model_ResourceAdd.resourceclass = 2;
230
+                    model_ResourceAdd.resourcecover = APP.ResourceAddTwo.coverpath;
231
+                    model_ResourceAdd.resourcename = Resourcename;
232
+                    model_ResourceAdd.resourcesize = Resourcesize;//zxy 文件大小
233
+                    model_ResourceAdd.resourcetype = 0;
234
+                    model_ResourceAdd.resourceurl = APP.ResourceAddTwo.videopath;
235
+                    model_ResourceAdd.schoolid = APP.UserInfo.Schoolid;
236
+                    if (Suffix.Equals("FLV"))
237
+                    {
238
+                        Suffix = "flv";
239
+                    }
240
+                    else if (Suffix.Equals("AVI"))
241
+                    {
242
+                        Suffix = "avi";
243
+                    }
244
+                    else
245
+                    {
246
+                        Suffix = "mp4";
247
+                    }
248
+
249
+                    model_ResourceAdd.suffix = Suffix;
250
+                    //model_ResourceAdd.uid = 0;//zxy
251
+                    int code = @interface.ResourceAdd(model_ResourceAdd);
252
+                    if (code == 0)
253
+                    {
254
+                        MessageWindow.Show("视频上传成功!");
255
+                        Hide();
256
+                    }
257
+                    else
258
+                    {
259
+                        MessageWindow.Show(APP.ServerMsg);
260
+                    }
261
+                }
262
+                else
263
+                {
264
+                    MessageWindow.Show(ErrMessage);
265
+                }
242 266
             }
243
-            else
267
+            catch (Exception ex)
244 268
             {
245
-                MessageWindow.Show(APP.ServerMsg);
269
+                MessageWindow.Show("视频上传失败!");
270
+                Hide();
271
+                LogHelper.WriteErrLog("【UploadWindow】(BtnStart_Click)" + ex.Message, ex);
246 272
             }
247 273
         }
248 274
     }

+ 334
- 336
XHWK.WKTool/XHMicroLessonSystemWindow.xaml Parādīt failu

@@ -8,7 +8,7 @@
8 8
         xmlns:gifLib="http://wpfanimatedgif.codeplex.com"
9 9
         xmlns:local="clr-namespace:XHWK.WKTool"
10 10
         mc:Ignorable="d"
11
-        Title="星火微课系统" Height="1040" Width="1276" WindowStartupLocation="CenterScreen"
11
+        Title="星火微课系统" Height="1036" Width="1276" WindowStartupLocation="CenterScreen"
12 12
     WindowStyle="None"    AllowsTransparency="True"  Background="#EFF1F8" ShowInTaskbar="True" ResizeMode="CanMinimize" BorderThickness="7">
13 13
     <Window.Effect>
14 14
         <DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
@@ -140,135 +140,134 @@
140 140
     </Window.BorderBrush>
141 141
 
142 142
     <Viewbox>
143
-        <Border Background="#cdcdcd" Height="1040" Width="1280">
144
-            <Grid x:Name="GridContent" Height="1036" Width="1276">
143
+        <Grid x:Name="GridContent" Height="1036" Width="1276">
145 144
 
146
-                <!--分3行-->
145
+            <!--分3行-->
146
+            <Grid.RowDefinitions>
147
+                <RowDefinition Height="106"/>
148
+                <RowDefinition Height="*"/>
149
+                <RowDefinition Height="40"/>
150
+            </Grid.RowDefinitions>
151
+            <Grid Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown" Margin="0,0,0,0">
147 152
                 <Grid.RowDefinitions>
148
-                    <RowDefinition Height="106"/>
149
-                    <RowDefinition Height="*"/>
150
-                    <RowDefinition Height="40"/>
153
+                    <RowDefinition Height="auto"/>
154
+                    <RowDefinition Height="auto"/>
151 155
                 </Grid.RowDefinitions>
152
-                <Grid Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown" Margin="0,0,0,0">
153
-                    <Grid.RowDefinitions>
154
-                        <RowDefinition Height="auto"/>
155
-                        <RowDefinition Height="auto"/>
156
-                    </Grid.RowDefinitions>
157
-                    <!--第一行-->
158
-                    <StackPanel Grid.Row="0" Orientation="Horizontal" Margin="10,2,10,0">
159
-                        <Image Source="./Images/microLessonSystem_0.png"/>
160
-                        <TextBlock Text="星火微课系统" FontSize="14" Padding="5,0,0,0" Foreground="#FFFFFF"/>
161
-                    </StackPanel>
162
-                    <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Right" Margin="10,2,10,0">
163
-                        <Button Cursor="Hand" x:Name="btnLoginType" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,10,0" Click="BtnLoginType_Click">
164
-                            <StackPanel Orientation="Horizontal">
165
-                                <Image Source="./Images/microLessonSystem_9.png"/>
166
-                                <TextBlock x:Name="txbLoginType" Text="未登录" FontSize="14" Padding="5,0,0,0" Foreground="#FFFFFF"/>
167
-                            </StackPanel>
168
-                        </Button>
169
-                        <Button Cursor="Hand" x:Name="btnShrink" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnShrink_Click" Margin="8,0,8,0">
170
-                            <Image Source="./Images/microLessonSystem_19.png"/>
171
-                        </Button>
172
-                        <!--<Button Cursor="Hand" x:Name="btnEnlarge" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="8,0,8,0">
156
+                <!--第一行-->
157
+                <StackPanel Grid.Row="0" Orientation="Horizontal" Margin="10,2,10,0">
158
+                    <Image Source="./Images/microLessonSystem_0.png"/>
159
+                    <TextBlock Text="星火微课系统" FontSize="14" Padding="5,0,0,0" Foreground="#FFFFFF"/>
160
+                </StackPanel>
161
+                <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Right" Margin="10,2,10,0">
162
+                    <Button Cursor="Hand" x:Name="btnLoginType" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,10,0" Click="BtnLoginType_Click">
163
+                        <StackPanel Orientation="Horizontal">
164
+                            <Image Source="./Images/microLessonSystem_9.png"/>
165
+                            <TextBlock x:Name="txbLoginType" Text="未登录" FontSize="14" Padding="5,0,0,0" Foreground="#FFFFFF"/>
166
+                        </StackPanel>
167
+                    </Button>
168
+                    <Button Cursor="Hand" x:Name="btnShrink" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnShrink_Click" Margin="8,0,8,0">
169
+                        <Image Source="./Images/microLessonSystem_19.png"/>
170
+                    </Button>
171
+                    <!--<Button Cursor="Hand" x:Name="btnEnlarge" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="8,0,8,0">
173 172
                         <Image Source="./Images/microLessonSystem_8.png"/>
174 173
                     </Button>-->
175
-                        <Button Cursor="Hand" x:Name="btnDown" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click" >
176
-                            <Image Source="./Images/microLessonSystem_10.png"/>
177
-                        </Button>
178
-                    </StackPanel>
179
-                    <!--第二行-->
180
-                    <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,6,0,0">
181
-                        <Button Cursor="Hand" x:Name="btnScreenRecording" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnScreenRecording_Click" Margin="30,0,0,0">
182
-                            <StackPanel Orientation="Vertical">
183
-                                <Image x:Name="ImgScreenRecording" Source="./Images/microLessonSystem_2.png"/>
184
-                                <Image x:Name="ImgScreenRecordingTwo" Source="./Images/microLessonSystem_3.png" Visibility="Collapsed"/>
185
-                                <TextBlock x:Name="TxbRecordScreenWord" Text="录屏" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
186
-                            </StackPanel>
187
-                        </Button>
188
-                        <Button Cursor="Hand" x:Name="btnScreenshot" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="30,0,0,0" Click="BtnScreenshot_Click">
189
-                            <StackPanel Orientation="Vertical">
190
-                                <Image x:Name="ImgScreenshot" Source="./Images/microLessonSystem_12.png"/>
191
-                                <Image x:Name="ImgScreenshotTwo" Source="./Images/microLessonSystem_11.png" Visibility="Collapsed"/>
192
-                                <TextBlock Text="截图" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
193
-                            </StackPanel>
194
-                        </Button>
195
-                        <Button Cursor="Hand" x:Name="btnImport" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnImport_Click" Margin="30,0,0,0">
196
-                            <StackPanel Orientation="Vertical">
197
-                                <Image x:Name="ImgImport" Source="./Images/microLessonSystem_6.png"/>
198
-                                <Image x:Name="ImgImportTwo" Source="./Images/microLessonSystem_7.png" Visibility="Collapsed"/>
199
-                                <TextBlock Text="导入" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
200
-                            </StackPanel>
201
-                        </Button>
202
-                        <Button Cursor="Hand" x:Name="BtnRecord" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="100,0,0,0" Click="BtnRecord_Click">
203
-                            <StackPanel Orientation="Vertical">
204
-                                <Image x:Name="ImgRecord" Source="./Images/microLessonSystem_14.png"/>
205
-                                <Image x:Name="ImgRecordTwo" Source="./Images/microLessonSystem_13.png" Visibility="Collapsed"/>
206
-                                <TextBlock x:Name="TxbRecordingWord" Text="录制" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
207
-                            </StackPanel>
208
-                        </Button>
209
-                        <Button Cursor="Hand" x:Name="btnStop" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnStop_Click" Margin="30,0,0,0">
210
-                            <StackPanel Orientation="Vertical">
211
-                                <Image x:Name="ImgStop" Source="./Images/microLessonSystem_21.png"/>
212
-                                <Image x:Name="ImgStopTwo" Source="./Images/microLessonSystem_20.png" Visibility="Collapsed"/>
213
-                                <TextBlock Text="停止" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
214
-                            </StackPanel>
215
-                        </Button>
216
-                        <TextBlock x:Name="txbTime" Text="" FontSize="20" Foreground="#FFFFFF" Margin="20,20,0,0"/>
217
-                        <TextBlock x:Name="txbType" Text="" FontSize="20" Foreground="#FFFFFF" Margin="20,20,0,0"/>
218
-                    </StackPanel>
219
-                    <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="10,10,10,0">
220
-                        <Button Cursor="Hand" x:Name="btnAdd" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnAdd_Click" Margin="0,0,30,0">
221
-                            <StackPanel Orientation="Vertical">
222
-                                <Image x:Name="ImgAdd" Source="./Images/microLessonSystem_25.png" Visibility="Visible"/>
223
-                                <Image x:Name="ImgAddTwo" Source="./Images/microLessonSystem_24.png" Visibility="Collapsed"/>
224
-                                <TextBlock Text="增加" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
225
-                            </StackPanel>
226
-                        </Button>
227
-                        <Button Cursor="Hand" x:Name="btnPrint" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnPrint_Click">
228
-                            <StackPanel Orientation="Vertical">
229
-                                <Image x:Name="ImgPrint" Source="./Images/microLessonSystem_4.png" Visibility="Collapsed"/>
230
-                                <Image x:Name="ImgPrintTwo" Source="./Images/microLessonSystem_5.png" Visibility="Visible"/>
231
-                                <TextBlock Text="打印" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
232
-                            </StackPanel>
233
-                        </Button>
234
-                        <!--<Button Cursor="Hand" x:Name="btnUpload" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnUpload_Click" Margin="0,0,30,0">
174
+                    <Button Cursor="Hand" x:Name="btnDown" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click" >
175
+                        <Image Source="./Images/microLessonSystem_10.png"/>
176
+                    </Button>
177
+                </StackPanel>
178
+                <!--第二行-->
179
+                <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,6,0,0">
180
+                    <Button Cursor="Hand" x:Name="btnScreenRecording" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnScreenRecording_Click" Margin="30,0,0,0">
181
+                        <StackPanel Orientation="Vertical">
182
+                            <Image x:Name="ImgScreenRecording" Source="./Images/microLessonSystem_2.png"/>
183
+                            <Image x:Name="ImgScreenRecordingTwo" Source="./Images/microLessonSystem_3.png" Visibility="Collapsed"/>
184
+                            <TextBlock x:Name="TxbRecordScreenWord" Text="录屏" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
185
+                        </StackPanel>
186
+                    </Button>
187
+                    <Button Cursor="Hand" x:Name="btnScreenshot" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="30,0,0,0" Click="BtnScreenshot_Click">
188
+                        <StackPanel Orientation="Vertical">
189
+                            <Image x:Name="ImgScreenshot" Source="./Images/microLessonSystem_12.png"/>
190
+                            <Image x:Name="ImgScreenshotTwo" Source="./Images/microLessonSystem_11.png" Visibility="Collapsed"/>
191
+                            <TextBlock Text="截图" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
192
+                        </StackPanel>
193
+                    </Button>
194
+                    <Button Cursor="Hand" x:Name="btnImport" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnImport_Click" Margin="30,0,0,0">
195
+                        <StackPanel Orientation="Vertical">
196
+                            <Image x:Name="ImgImport" Source="./Images/microLessonSystem_6.png"/>
197
+                            <Image x:Name="ImgImportTwo" Source="./Images/microLessonSystem_7.png" Visibility="Collapsed"/>
198
+                            <TextBlock Text="导入" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
199
+                        </StackPanel>
200
+                    </Button>
201
+                    <Button Cursor="Hand" x:Name="BtnRecord" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="100,0,0,0" Click="BtnRecord_Click">
202
+                        <StackPanel Orientation="Vertical">
203
+                            <Image x:Name="ImgRecord" Source="./Images/microLessonSystem_14.png"/>
204
+                            <Image x:Name="ImgRecordTwo" Source="./Images/microLessonSystem_13.png" Visibility="Collapsed"/>
205
+                            <TextBlock x:Name="TxbRecordingWord" Text="录制" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
206
+                        </StackPanel>
207
+                    </Button>
208
+                    <Button Cursor="Hand" x:Name="btnStop" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnStop_Click" Margin="30,0,0,0">
209
+                        <StackPanel Orientation="Vertical">
210
+                            <Image x:Name="ImgStop" Source="./Images/microLessonSystem_21.png"/>
211
+                            <Image x:Name="ImgStopTwo" Source="./Images/microLessonSystem_20.png" Visibility="Collapsed"/>
212
+                            <TextBlock Text="停止" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
213
+                        </StackPanel>
214
+                    </Button>
215
+                    <TextBlock x:Name="txbTime" Text="" FontSize="20" Foreground="#FFFFFF" Margin="20,20,0,0"/>
216
+                    <TextBlock x:Name="txbType" Text="" FontSize="20" Foreground="#FFFFFF" Margin="20,20,0,0"/>
217
+                </StackPanel>
218
+                <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="10,10,10,0">
219
+                    <Button Cursor="Hand" x:Name="btnAdd" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnAdd_Click" Margin="0,0,30,0">
220
+                        <StackPanel Orientation="Vertical">
221
+                            <Image x:Name="ImgAdd" Source="./Images/microLessonSystem_25.png" Visibility="Visible"/>
222
+                            <Image x:Name="ImgAddTwo" Source="./Images/microLessonSystem_24.png" Visibility="Collapsed"/>
223
+                            <TextBlock Text="增加" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
224
+                        </StackPanel>
225
+                    </Button>
226
+                    <Button Cursor="Hand" x:Name="btnPrint" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnPrint_Click">
227
+                        <StackPanel Orientation="Vertical">
228
+                            <Image x:Name="ImgPrint" Source="./Images/microLessonSystem_4.png" Visibility="Collapsed"/>
229
+                            <Image x:Name="ImgPrintTwo" Source="./Images/microLessonSystem_5.png" Visibility="Visible"/>
230
+                            <TextBlock Text="打印" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
231
+                        </StackPanel>
232
+                    </Button>
233
+                    <!--<Button Cursor="Hand" x:Name="btnUpload" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnUpload_Click" Margin="0,0,30,0">
235 234
                         <StackPanel Orientation="Vertical">
236 235
                             <Image x:Name="ImgUpload" Source="./Images/microLessonSystem_15.png" Visibility="Collapsed"/>
237 236
                             <Image x:Name="ImgUploadTwo" Source="./Images/microLessonSystem_16.png" Visibility="Visible"/>
238 237
                             <TextBlock Text="上传" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
239 238
                         </StackPanel>
240 239
                     </Button>-->
241
-                        <Button Cursor="Hand" x:Name="btnUpload" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnUpload_Click">
242
-                            <StackPanel Orientation="Vertical">
243
-                                <Image x:Name="ImgUpload" Source="./Images/microLessonSystem_22.png" Visibility="Collapsed"/>
244
-                                <Image x:Name="ImgUploadTwo" Source="./Images/microLessonSystem_1.png" Visibility="Visible"/>
245
-                                <TextBlock Text="我的" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
246
-                            </StackPanel>
247
-                        </Button>
248
-                        <Button Cursor="Hand" x:Name="btnSetUp" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnSetUp_Click">
249
-                            <StackPanel Orientation="Vertical">
250
-                                <Image x:Name="ImgSetUp" Source="./Images/microLessonSystem_18.png" Visibility="Visible"/>
251
-                                <Image x:Name="ImgSetUpTwo" Source="./Images/microLessonSystem_17.png" Visibility="Collapsed"/>
252
-                                <TextBlock Text="设置" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
253
-                            </StackPanel>
254
-                        </Button>
255
-                    </StackPanel>
256
-                </Grid>
257
-                <!--主内容-->
258
-                <Grid Grid.Row="1" x:Name="GridMain" Width="1276" Visibility="Visible">
259
-                    <ScrollViewer x:Name="scroMain" VerticalScrollBarVisibility="Visible">
260
-                        <Grid x:Name="gridM"  Margin="0,0,0,0" Background="#FFFFFF" Visibility="Visible" Height="1780">
261
-                            <Grid>
262
-                                <Border Grid.Row="1"  CornerRadius="5">
263
-                                    <Grid x:Name="IMG" Margin="0,0,0,0">
264
-                                        <Grid.Resources>
265
-                                            <TransformGroup x:Key="Imageview">
266
-                                                <ScaleTransform/>
267
-                                                <TranslateTransform/>
268
-                                            </TransformGroup>
269
-                                        </Grid.Resources>
240
+                    <Button Cursor="Hand" x:Name="btnUpload" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnUpload_Click">
241
+                        <StackPanel Orientation="Vertical">
242
+                            <Image x:Name="ImgUpload" Source="./Images/microLessonSystem_22.png" Visibility="Collapsed"/>
243
+                            <Image x:Name="ImgUploadTwo" Source="./Images/microLessonSystem_1.png" Visibility="Visible"/>
244
+                            <TextBlock Text="我的" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
245
+                        </StackPanel>
246
+                    </Button>
247
+                    <Button Cursor="Hand" x:Name="btnSetUp" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnSetUp_Click">
248
+                        <StackPanel Orientation="Vertical">
249
+                            <Image x:Name="ImgSetUp" Source="./Images/microLessonSystem_18.png" Visibility="Visible"/>
250
+                            <Image x:Name="ImgSetUpTwo" Source="./Images/microLessonSystem_17.png" Visibility="Collapsed"/>
251
+                            <TextBlock Text="设置" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
252
+                        </StackPanel>
253
+                    </Button>
254
+                </StackPanel>
255
+            </Grid>
256
+            <!--主内容-->
257
+            <Grid Grid.Row="1" x:Name="GridMain" Width="1276" Visibility="Visible">
258
+                <ScrollViewer x:Name="scroMain" VerticalScrollBarVisibility="Visible">
259
+                    <Grid x:Name="gridM"  Margin="0,0,0,0" Background="#FFFFFF" Visibility="Visible" Height="1780">
260
+                        <Grid>
261
+                            <Border Grid.Row="1"  CornerRadius="5">
262
+                                <Grid x:Name="IMG" Margin="0,0,0,0">
263
+                                    <Grid.Resources>
264
+                                        <TransformGroup x:Key="Imageview">
265
+                                            <ScaleTransform/>
266
+                                            <TranslateTransform/>
267
+                                        </TransformGroup>
268
+                                    </Grid.Resources>
270 269
 
271
-                                        <!--<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Disabled"   Cursor="SizeAll"
270
+                                    <!--<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Disabled"   Cursor="SizeAll"
272 271
                   Margin="0,0,0,0" Focusable="False" x:Name="BackFrame">
273 272
                                             <ContentControl  MouseLeftButtonDown="IMG1_MouseLeftButtonDown"   
274 273
                              MouseLeftButtonUp="IMG1_MouseLeftButtonUp"
@@ -276,159 +275,133 @@
276 275
                              MouseWheel="IMG1_MouseWheel" >
277 276
                                             </ContentControl>
278 277
                                         </ScrollViewer>-->
279
-                                        <!--图片表框 -->
280
-                                        <Rectangle x:Name="RectImgBorder" Cursor="SizeAll" Fill="#00000000" HorizontalAlignment="Left" Stroke="#2D8CF0" VerticalAlignment="Top" Width="300" Height="300" Visibility="Hidden" Margin="373,175,0,0" StrokeThickness="4" StrokeDashArray="4 4" SnapsToDevicePixels="True"/>
281
-                                        <Image Name="imgCanvas" Height="0" VerticalAlignment="Top" HorizontalAlignment="Left" Stretch="Fill" MouseDown="PicEMap_MouseDown" RenderTransform="{StaticResource Imageview}" MouseRightButtonDown="imgCanvas_MouseRightButtonDown" Focusable="True" MouseMove="imgCanvas_MouseMove" MouseUp="imgCanvas_MouseUp"/>
282
-                                        <!--四个点 -->
283
-                                        <Canvas>
284
-                                            <Thumb x:Name="RectLeftUp" Cursor="SizeNWSE"  HorizontalAlignment="Left" Height="20"  VerticalAlignment="Top" Width="20" Visibility="Hidden" Canvas.Left="314" Canvas.Top="157" Background="White" BorderBrush="#2D8CF0" BorderThickness="2"  DragDelta="RectRightUp_DragDelta" DragStarted="RectRightUp_DragStarted" DragCompleted="RectRightUp_DragCompleted"/>
285
-                                            <Thumb x:Name="RectRightUp" Cursor="SizeNESW"  HorizontalAlignment="Left" Height="20"  VerticalAlignment="Top" Width="20" Visibility="Hidden" Canvas.Left="775" Canvas.Top="157" Background="White" BorderBrush="#2D8CF0" BorderThickness="2" DragDelta="RectRightUp_DragDelta" DragStarted="RectRightUp_DragStarted" DragCompleted="RectRightUp_DragCompleted"/>
286
-                                            <Thumb x:Name="RectLeftDown" Cursor="SizeNESW"  HorizontalAlignment="Left" Height="20"  VerticalAlignment="Top" Width="20" Visibility="Hidden" Canvas.Left="314" Canvas.Top="508" Background="White" BorderBrush="#2D8CF0" BorderThickness="2" DragDelta="RectRightUp_DragDelta" DragStarted="RectRightUp_DragStarted" DragCompleted="RectRightUp_DragCompleted"/>
287
-                                            <Thumb x:Name="RectRightDown" Cursor="SizeNWSE"  HorizontalAlignment="Left" Height="20"  VerticalAlignment="Top" Width="20" Visibility="Hidden" Canvas.Left="775" Canvas.Top="508" Background="White" BorderBrush="#2D8CF0" BorderThickness="2" DragDelta="RectRightUp_DragDelta" DragStarted="RectRightUp_DragStarted" DragCompleted="RectRightUp_DragCompleted"/>
288
-                                        </Canvas>
289
-                                    </Grid>
290
-                                </Border>
291
-                            </Grid>
292
-                            <Image x:Name="imgDocumentation" Visibility="Visible"/>
278
+                                    <!--图片表框 -->
279
+                                    <Rectangle x:Name="RectImgBorder" Cursor="SizeAll" Fill="#00000000" HorizontalAlignment="Left" Stroke="#2D8CF0" VerticalAlignment="Top" Width="300" Height="300" Visibility="Hidden" Margin="373,175,0,0" StrokeThickness="4" StrokeDashArray="4 4" SnapsToDevicePixels="True"/>
280
+                                    <Image Name="imgCanvas" Height="0" VerticalAlignment="Top" HorizontalAlignment="Left" Stretch="Fill" MouseDown="PicEMap_MouseDown" RenderTransform="{StaticResource Imageview}" MouseRightButtonDown="imgCanvas_MouseRightButtonDown" Focusable="True" MouseMove="imgCanvas_MouseMove" MouseUp="imgCanvas_MouseUp"/>
281
+                                    <!--四个点 -->
282
+                                    <Canvas>
283
+                                        <Thumb x:Name="RectLeftUp" Cursor="SizeNWSE"  HorizontalAlignment="Left" Height="20"  VerticalAlignment="Top" Width="20" Visibility="Hidden" Canvas.Left="314" Canvas.Top="157" Background="White" BorderBrush="#2D8CF0" BorderThickness="2"  DragDelta="RectRightUp_DragDelta" DragStarted="RectRightUp_DragStarted" DragCompleted="RectRightUp_DragCompleted"/>
284
+                                        <Thumb x:Name="RectRightUp" Cursor="SizeNESW"  HorizontalAlignment="Left" Height="20"  VerticalAlignment="Top" Width="20" Visibility="Hidden" Canvas.Left="775" Canvas.Top="157" Background="White" BorderBrush="#2D8CF0" BorderThickness="2" DragDelta="RectRightUp_DragDelta" DragStarted="RectRightUp_DragStarted" DragCompleted="RectRightUp_DragCompleted"/>
285
+                                        <Thumb x:Name="RectLeftDown" Cursor="SizeNESW"  HorizontalAlignment="Left" Height="20"  VerticalAlignment="Top" Width="20" Visibility="Hidden" Canvas.Left="314" Canvas.Top="508" Background="White" BorderBrush="#2D8CF0" BorderThickness="2" DragDelta="RectRightUp_DragDelta" DragStarted="RectRightUp_DragStarted" DragCompleted="RectRightUp_DragCompleted"/>
286
+                                        <Thumb x:Name="RectRightDown" Cursor="SizeNWSE"  HorizontalAlignment="Left" Height="20"  VerticalAlignment="Top" Width="20" Visibility="Hidden" Canvas.Left="775" Canvas.Top="508" Background="White" BorderBrush="#2D8CF0" BorderThickness="2" DragDelta="RectRightUp_DragDelta" DragStarted="RectRightUp_DragStarted" DragCompleted="RectRightUp_DragCompleted"/>
287
+                                    </Canvas>
288
+                                </Grid>
289
+                            </Border>
290
+                        </Grid>
291
+                        <Image x:Name="imgDocumentation" Visibility="Visible"/>
292
+
293
+                        <!--导入图片-->
294
+                        <!--<Button Cursor="Hand" x:Name="btnOk" Height="50" Width="50" Content="√" FontSize="26" Background="#2E8CF0" Foreground="#FFFFFF" Click="btnOk_Click" Visibility="Collapsed"/>-->
295
+                        <InkCanvas Grid.Row="0" x:Name="blackboard_canvas"  Background="Transparent" Visibility="Collapsed" Grid.ColumnSpan="2" />
293 296
 
294
-                            <!--导入图片-->
295
-                            <!--<Button Cursor="Hand" x:Name="btnOk" Height="50" Width="50" Content="√" FontSize="26" Background="#2E8CF0" Foreground="#FFFFFF" Click="btnOk_Click" Visibility="Collapsed"/>-->
296
-                            <InkCanvas Grid.Row="0" x:Name="blackboard_canvas"  Background="Transparent" Visibility="Collapsed" Grid.ColumnSpan="2" />
297
-                            
298
-                          
299
-                            <!--摄像头-->
300
-                            <!--<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">
297
+
298
+                        <!--摄像头-->
299
+                        <!--<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">
301 300
                     <aforge:VideoSourcePlayer x:Name="player" Height="124" Width="172"  />
302 301
                 </wfi:WindowsFormsHost>-->
303
-                            <!--<Image x:Name="imgLoad"
302
+                        <!--<Image x:Name="imgLoad"
304 303
                     Width="300"
305 304
                     Height="300"
306 305
                     gifLib:ImageBehavior.AnimatedSource="./Images/img_load.gif" VerticalAlignment="Top" Margin="0,200,0,0" Visibility="Visible"/>-->
307
-                        </Grid>
308
-                    </ScrollViewer>
309
-                    <Image x:Name="imgPlayerLeft" Width="172" Height="124" Source="./Images/microLessonSystem_17.png"  HorizontalAlignment="Left"  Margin="10,7,10,10" VerticalAlignment="Top" Visibility="Collapsed"/>
310
-                    <Image x:Name="imgPlayerRight" Width="172" Height="124" Source="./Images/microLessonSystem_17.png"  HorizontalAlignment="Right"  Margin="10,7,26,10" VerticalAlignment="Top" Visibility="Collapsed"/>
311
-                    <Image x:Name="imgPlayerLeftUnder" Width="172" Height="124" Source="./Images/microLessonSystem_17.png"  HorizontalAlignment="Left"  Margin="10,7,10,10" VerticalAlignment="Bottom" Visibility="Collapsed"/>
312
-                    <Image x:Name="imgPlayerRightUnder" Width="172" Height="124" Source="./Images/microLessonSystem_17.png"  HorizontalAlignment="Right" Margin="10,7,26,10" VerticalAlignment="Bottom" Visibility="Collapsed"/>
313
-                    <Label Content="" Grid.Column="0" Height="2" Width="2" HorizontalAlignment="Left"  VerticalAlignment="Top" Background="#FF0F0F0F" Margin="1,0,0,0"/>
314
-                    <Label Content="" Grid.Column="1" Height="2" Width="2" Background="#FF0F0F0F" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,16,0"/>
315
-                    <Label Content="" Grid.Column="0" Height="2" Width="2" Background="#FF0F0F0F" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="1,0,0,0"/>
316
-                    <Label Content="" Grid.Column="1" Height="2" Width="2" Background="#FF0F0F0F" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,16,0"/>
317
-                </Grid>
318
-                <!--页码-->
319
-                <Grid Grid.Row="1" x:Name="gridPage" Visibility="Collapsed">
320
-                    <StackPanel Grid.Row="0" Orientation="Horizontal" Background="Transparent" Width="180" HorizontalAlignment="Center"
306
+                    </Grid>
307
+                </ScrollViewer>
308
+                <Image x:Name="imgPlayerLeft" Width="172" Height="124" Source="./Images/microLessonSystem_17.png"  HorizontalAlignment="Left"  Margin="10,7,10,10" VerticalAlignment="Top" Visibility="Collapsed"/>
309
+                <Image x:Name="imgPlayerRight" Width="172" Height="124" Source="./Images/microLessonSystem_17.png"  HorizontalAlignment="Right"  Margin="10,7,26,10" VerticalAlignment="Top" Visibility="Collapsed"/>
310
+                <Image x:Name="imgPlayerLeftUnder" Width="172" Height="124" Source="./Images/microLessonSystem_17.png"  HorizontalAlignment="Left"  Margin="10,7,10,10" VerticalAlignment="Bottom" Visibility="Collapsed"/>
311
+                <Image x:Name="imgPlayerRightUnder" Width="172" Height="124" Source="./Images/microLessonSystem_17.png"  HorizontalAlignment="Right" Margin="10,7,26,10" VerticalAlignment="Bottom" Visibility="Collapsed"/>
312
+                <Label Content="" Grid.Column="0" Height="2" Width="2" HorizontalAlignment="Left"  VerticalAlignment="Top" Background="#FF0F0F0F" Margin="1,0,0,0"/>
313
+                <Label Content="" Grid.Column="1" Height="2" Width="2" Background="#FF0F0F0F" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,16,0"/>
314
+                <Label Content="" Grid.Column="0" Height="2" Width="2" Background="#FF0F0F0F" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="1,0,0,0"/>
315
+                <Label Content="" Grid.Column="1" Height="2" Width="2" Background="#FF0F0F0F" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,16,0"/>
316
+            </Grid>
317
+            <!--页码-->
318
+            <Grid Grid.Row="1" x:Name="gridPage" Visibility="Collapsed">
319
+                <StackPanel Grid.Row="0" Orientation="Horizontal" Background="Transparent" Width="180" HorizontalAlignment="Center"
321 320
             Height="30" Margin="0,0,0,0" Grid.Column="1" VerticalAlignment="Bottom">
322
-                        <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
321
+                    <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
323 322
                     x:Name="last_button"
324 323
                     Width="60" Height="20"
325 324
                     Click="last_button_Click">
326
-                            <Button.Content>
325
+                        <Button.Content>
327 326
                             <StackPanel>
328 327
                                 <Image Width="16" Height="12" Source=".\Images\class_p1.png" />
329 328
                             </StackPanel>
330
-                            </Button.Content>
331
-                        </Button>
332
-                        <Grid Width="60"  Background="Transparent">
333
-                            <Grid.RowDefinitions>
334
-                                <RowDefinition Height="311*"/>
335
-                                <RowDefinition Height="483*"/>
336
-                            </Grid.RowDefinitions>
337
-                            <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,-12,0,0" Grid.Row="1"  Background="Transparent">
338
-                                <StackPanel HorizontalAlignment="Center" Orientation="Horizontal"  Background="Transparent">
339
-                                    <TextBlock x:Name="txbCurrpage" Text="{Binding currpage}" TextAlignment="Center" FontSize="15"/>
340
-                                    <TextBlock Text="/" TextAlignment="Center" FontSize="15"/>
341
-                                    <TextBlock Text="{Binding pagenum}" TextAlignment="Center" FontSize="15"/>
342
-                                </StackPanel>
329
+                        </Button.Content>
330
+                    </Button>
331
+                    <Grid Width="60"  Background="Transparent">
332
+                        <Grid.RowDefinitions>
333
+                            <RowDefinition Height="311*"/>
334
+                            <RowDefinition Height="483*"/>
335
+                        </Grid.RowDefinitions>
336
+                        <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,-12,0,0" Grid.Row="1"  Background="Transparent">
337
+                            <StackPanel HorizontalAlignment="Center" Orientation="Horizontal"  Background="Transparent">
338
+                                <TextBlock x:Name="txbCurrpage" Text="{Binding currpage}" TextAlignment="Center" FontSize="15"/>
339
+                                <TextBlock Text="/" TextAlignment="Center" FontSize="15"/>
340
+                                <TextBlock Text="{Binding pagenum}" TextAlignment="Center" FontSize="15"/>
343 341
                             </StackPanel>
344
-                        </Grid>
345
-                        <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
342
+                        </StackPanel>
343
+                    </Grid>
344
+                    <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
346 345
                     x:Name="next_btn"  Background="Transparent"
347 346
                     Width="60" Height="20"
348 347
                     Click="next_btn_Click">
349
-                            <Button.Content>
350
-                                <StackPanel>
351
-                                    <Image Width="16" Height="12" Source=".\Images\class_p2.png" />
352
-                                </StackPanel>
353
-                            </Button.Content>
354
-                        </Button>
355
-                    </StackPanel>
356
-                </Grid>
357
-                <!--设置-->
358
-                <Grid Grid.Row="1" x:Name="gridSetUp"  Background="#FFFFFF" Visibility="Collapsed" Width="1276">
359
-                    <Grid.RowDefinitions>
360
-                        <RowDefinition Height="90"/>
361
-                        <RowDefinition Height="70"/>
362
-                        <RowDefinition Height="50"/>
363
-                        <RowDefinition Height="70"/>
364
-                        <RowDefinition Height="70"/>
365
-                        <RowDefinition Height="70"/>
366
-                        <RowDefinition Height="70"/>
367
-                        <RowDefinition Height="*"/>
368
-                    </Grid.RowDefinitions>
369
-                    <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,30,0,0">
370
-                        <TextBlock Text="   点阵笔" FontSize="16" Foreground="#2D8CF0" Width="80"/>
371
-                        <TextBlock x:Name="txbNotConnecteds"  Text="未连接" FontSize="14" Foreground="#333333" Padding="10,0,0,0"/>
372
-                    </StackPanel>
373
-                    <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
374
-                        <TextBlock Text="视频格式" FontSize="16" Foreground="#2D8CF0" Width="80"/>
375
-                        <RadioButton x:Name="rbnMP4" Cursor="Hand" Content="MP4" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
376
-                        <RadioButton x:Name="rbnFLV" Cursor="Hand" Content="FLV" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
377
-                        <RadioButton x:Name="rbnAVI" Cursor="Hand" Content="AVI" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
378
-                    </StackPanel>
379
-                    <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
380
-                        <TextBlock Text="头像位置" FontSize="16" Foreground="#2D8CF0" Width="80"/>
381
-                        <RadioButton Cursor="Hand" x:Name="rbnRight" Content="右上" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
382
-                        <RadioButton Cursor="Hand" x:Name="rbnRightUnder" Content="右下" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
383
-                        <RadioButton Cursor="Hand" x:Name="rbnLeft" Content="左上" FontSize="14" Foreground="#333333" Margin="20,2,0,0" />
384
-                        <RadioButton Cursor="Hand" x:Name="rbnLeftUnder" Content="左下" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
385
-                    </StackPanel>
386
-                    <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0" Visibility="Collapsed">
387
-                        <TextBlock Text="视频声音" FontSize="16" Foreground="#2D8CF0" Width="80"/>
388
-                        <RadioButton x:Name="rbnY" Cursor="Hand" Content="有" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
389
-                        <RadioButton x:Name="rbnN" Cursor="Hand" Content="无" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
390
-                    </StackPanel>
391
-                    <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
392
-                        <TextBlock x:Name="txbFilePath" Text="文件路径" FontSize="16" Width="80"  Foreground="#2D8CF0" Padding="2,26,10,0"/>
393
-                        <!--输入框-->
394
-                        <Border Background="#CDD6E0" Width="525" Height="43" CornerRadius="3">
395
-                            <Label x:Name="txbStoragePath" Background="#FFFFFF" Content="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="523" Height="42" BorderBrush="{x:Null}" BorderThickness="0"/>
396
-                        </Border>
397
-                        <!--浏览按钮-->
398
-                        <Button Cursor="Hand" x:Name="btnBrowse" Content="浏览" FontSize="18" Width="80" Height="43" Margin="18,0,0,0" Click="BtnBrowse_Click">
399
-                            <Button.Template>
400
-                                <ControlTemplate TargetType="{x:Type Button}">
401
-                                    <Border
402
-                                BorderBrush="{TemplateBinding Control.BorderBrush}"
403
-                                BorderThickness="1"
404
-                                CornerRadius="2">
405
-                                        <Border.Background>#EBEFF3</Border.Background>
406
-                                        <ContentPresenter
407
-                                    HorizontalAlignment="Center"
408
-                                    VerticalAlignment="Center"
409
-                                    Content="{TemplateBinding ContentControl.Content}" />
410
-                                    </Border>
411
-                                </ControlTemplate>
412
-                            </Button.Template>
413
-                        </Button>
414
-                    </StackPanel>
415
-                    <StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,30,0,0">
416
-                        <TextBlock Text="    版本号" FontSize="16" Width="80" Foreground="#2D8CF0"/>
417
-                        <TextBlock x:Name="txbv" Text="V0.0.0" FontSize="16" Foreground="#333333" Padding="10,0,0,0"/>
418
-                    </StackPanel>
419
-                    <StackPanel Grid.Row="5" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,30,0,0">
420
-                        <TextBlock Text="版权所有" FontSize="16" Width="80" Foreground="#2D8CF0"/>
421
-                        <TextBlock Text="河南星火燎原软件科技有限公司" FontSize="14" Foreground="#333333" Padding="10,0,0,0"/>
422
-                    </StackPanel>
423
-                    <!--第四行 开始按钮-->
424
-                    <Button Cursor="Hand" Grid.Row="6" 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">
348
+                        <Button.Content>
349
+                            <StackPanel>
350
+                                <Image Width="16" Height="12" Source=".\Images\class_p2.png" />
351
+                            </StackPanel>
352
+                        </Button.Content>
353
+                    </Button>
354
+                </StackPanel>
355
+            </Grid>
356
+            <!--设置-->
357
+            <Grid Grid.Row="1" x:Name="gridSetUp"  Background="#FFFFFF" Visibility="Collapsed" Width="1276">
358
+                <Grid.RowDefinitions>
359
+                    <RowDefinition Height="90"/>
360
+                    <RowDefinition Height="70"/>
361
+                    <RowDefinition Height="50"/>
362
+                    <RowDefinition Height="70"/>
363
+                    <RowDefinition Height="70"/>
364
+                    <RowDefinition Height="70"/>
365
+                    <RowDefinition Height="70"/>
366
+                    <RowDefinition Height="*"/>
367
+                </Grid.RowDefinitions>
368
+                <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,30,0,0">
369
+                    <TextBlock Text="   点阵笔" FontSize="16" Foreground="#2D8CF0" Width="80"/>
370
+                    <TextBlock x:Name="txbNotConnecteds"  Text="未连接" FontSize="14" Foreground="#333333" Padding="10,0,0,0"/>
371
+                </StackPanel>
372
+                <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
373
+                    <TextBlock Text="视频格式" FontSize="16" Foreground="#2D8CF0" Width="80"/>
374
+                    <RadioButton x:Name="rbnMP4" Cursor="Hand" Content="MP4" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
375
+                    <RadioButton x:Name="rbnFLV" Cursor="Hand" Content="FLV" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
376
+                    <RadioButton x:Name="rbnAVI" Cursor="Hand" Content="AVI" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
377
+                </StackPanel>
378
+                <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
379
+                    <TextBlock Text="头像位置" FontSize="16" Foreground="#2D8CF0" Width="80"/>
380
+                    <RadioButton Cursor="Hand" x:Name="rbnRight" Content="右上" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
381
+                    <RadioButton Cursor="Hand" x:Name="rbnRightUnder" Content="右下" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
382
+                    <RadioButton Cursor="Hand" x:Name="rbnLeft" Content="左上" FontSize="14" Foreground="#333333" Margin="20,2,0,0" />
383
+                    <RadioButton Cursor="Hand" x:Name="rbnLeftUnder" Content="左下" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
384
+                </StackPanel>
385
+                <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0" Visibility="Collapsed">
386
+                    <TextBlock Text="视频声音" FontSize="16" Foreground="#2D8CF0" Width="80"/>
387
+                    <RadioButton x:Name="rbnY" Cursor="Hand" Content="有" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
388
+                    <RadioButton x:Name="rbnN" Cursor="Hand" Content="无" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
389
+                </StackPanel>
390
+                <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
391
+                    <TextBlock x:Name="txbFilePath" Text="文件路径" FontSize="16" Width="80"  Foreground="#2D8CF0" Padding="2,26,10,0"/>
392
+                    <!--输入框-->
393
+                    <Border Background="#CDD6E0" Width="525" Height="43" CornerRadius="3">
394
+                        <Label x:Name="txbStoragePath" Background="#FFFFFF" Content="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="523" Height="42" BorderBrush="{x:Null}" BorderThickness="0"/>
395
+                    </Border>
396
+                    <!--浏览按钮-->
397
+                    <Button Cursor="Hand" x:Name="btnBrowse" Content="浏览" FontSize="18" Width="80" Height="43" Margin="18,0,0,0" Click="BtnBrowse_Click">
425 398
                         <Button.Template>
426 399
                             <ControlTemplate TargetType="{x:Type Button}">
427 400
                                 <Border
428 401
                                 BorderBrush="{TemplateBinding Control.BorderBrush}"
429 402
                                 BorderThickness="1"
430 403
                                 CornerRadius="2">
431
-                                    <Border.Background>#2D8CF0</Border.Background>
404
+                                    <Border.Background>#EBEFF3</Border.Background>
432 405
                                     <ContentPresenter
433 406
                                     HorizontalAlignment="Center"
434 407
                                     VerticalAlignment="Center"
@@ -437,60 +410,86 @@
437 410
                             </ControlTemplate>
438 411
                         </Button.Template>
439 412
                     </Button>
440
-                </Grid>
441
-                <!--上传-->
442
-                <Grid Grid.Row="1" x:Name="gridUpload" Visibility="Collapsed">
443
-                    <Border Width="1276" Background="#EFF1F8">
444
-                        <Grid  Width="1236" Background="#FFFFFF" Margin="0,0,0,0">
445
-                            <!--分4行-->
413
+                </StackPanel>
414
+                <StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,30,0,0">
415
+                    <TextBlock Text="    版本号" FontSize="16" Width="80" Foreground="#2D8CF0"/>
416
+                    <TextBlock x:Name="txbv" Text="V0.0.0" FontSize="16" Foreground="#333333" Padding="10,0,0,0"/>
417
+                </StackPanel>
418
+                <StackPanel Grid.Row="5" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,30,0,0">
419
+                    <TextBlock Text="版权所有" FontSize="16" Width="80" Foreground="#2D8CF0"/>
420
+                    <TextBlock Text="河南星火燎原软件科技有限公司" FontSize="14" Foreground="#333333" Padding="10,0,0,0"/>
421
+                </StackPanel>
422
+                <!--第四行 开始按钮-->
423
+                <Button Cursor="Hand" Grid.Row="6" 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">
424
+                    <Button.Template>
425
+                        <ControlTemplate TargetType="{x:Type Button}">
426
+                            <Border
427
+                                BorderBrush="{TemplateBinding Control.BorderBrush}"
428
+                                BorderThickness="1"
429
+                                CornerRadius="2">
430
+                                <Border.Background>#2D8CF0</Border.Background>
431
+                                <ContentPresenter
432
+                                    HorizontalAlignment="Center"
433
+                                    VerticalAlignment="Center"
434
+                                    Content="{TemplateBinding ContentControl.Content}" />
435
+                            </Border>
436
+                        </ControlTemplate>
437
+                    </Button.Template>
438
+                </Button>
439
+            </Grid>
440
+            <!--上传-->
441
+            <Grid Grid.Row="1" x:Name="gridUpload" Visibility="Collapsed">
442
+                <Border Width="1276" Background="#EFF1F8">
443
+                    <Grid  Width="1236" Background="#FFFFFF" Margin="0,0,0,0">
444
+                        <!--分4行-->
445
+                        <Grid.RowDefinitions>
446
+                            <RowDefinition Height="*"/>
447
+                            <RowDefinition Height="30"/>
448
+                        </Grid.RowDefinitions>
449
+                        <!--第二行 内容-->
450
+                        <Grid Grid.Row="0" Margin="0,0,0,0">
446 451
                             <Grid.RowDefinitions>
452
+                                <RowDefinition Height="45"/>
447 453
                                 <RowDefinition Height="*"/>
448
-                                <RowDefinition Height="30"/>
449 454
                             </Grid.RowDefinitions>
450
-                            <!--第二行 内容-->
451
-                            <Grid Grid.Row="0" Margin="0,0,0,0">
452
-                                <Grid.RowDefinitions>
453
-                                    <RowDefinition Height="45"/>
454
-                                    <RowDefinition Height="*"/>
455
-                                </Grid.RowDefinitions>
456
-                                <UniformGrid x:Name="uniStatisticsByTitle"
455
+                            <UniformGrid x:Name="uniStatisticsByTitle"
457 456
                 Grid.Row="0"
458 457
                 Margin="0,0,0,0"
459 458
                 Background="#E6F0FF"
460 459
                 Columns="5"
461 460
                 Rows="1">
462
-                                    <TextBlock
461
+                                <TextBlock
463 462
                     HorizontalAlignment="Center"
464 463
                     VerticalAlignment="Center"
465 464
                     FontSize="16"
466 465
                     Text="序号"  />
467
-                                    <TextBlock
466
+                                <TextBlock
468 467
                     HorizontalAlignment="Center"
469 468
                     VerticalAlignment="Center"
470 469
                     FontSize="16"
471 470
                     Text="视频名称"/>
472
-                                    <!--<TextBlock
471
+                                <!--<TextBlock
473 472
                     HorizontalAlignment="Center"
474 473
                     VerticalAlignment="Center"
475 474
                     FontSize="15"
476 475
                     Text="视频时长" Foreground="White" />-->
477
-                                    <TextBlock
476
+                                <TextBlock
478 477
                     HorizontalAlignment="Center"
479 478
                     VerticalAlignment="Center"
480 479
                     FontSize="16"
481 480
                     Text="视频大小"/>
482
-                                    <TextBlock
481
+                                <TextBlock
483 482
                     HorizontalAlignment="Center"
484 483
                     VerticalAlignment="Center"
485 484
                     FontSize="16"
486 485
                     Text="日期"/>
487
-                                    <TextBlock
486
+                                <TextBlock
488 487
                     HorizontalAlignment="Center"
489 488
                     VerticalAlignment="Center"
490 489
                     FontSize="16"
491 490
                     Text="操作"/>
492
-                                </UniformGrid>
493
-                                <ListBox Grid.Row="1" Margin="0,0,0,0"
491
+                            </UniformGrid>
492
+                            <ListBox Grid.Row="1" Margin="0,0,0,0"
494 493
                     x:Name="listView1"
495 494
                     BorderThickness="0"
496 495
                     FontSize="20"
@@ -499,84 +498,83 @@
499 498
                     ItemsSource="{Binding menuList}" 
500 499
                            ScrollViewer.HorizontalScrollBarVisibility="Disabled"
501 500
                                 ScrollViewer.VerticalScrollBarVisibility="Disabled"/>
502
-                            </Grid>
503
-                            <StackPanel Grid.Row="3" x:Name="stpUp" Orientation="Horizontal" Background="Transparent" Width="180" HorizontalAlignment="Center"
501
+                        </Grid>
502
+                        <StackPanel Grid.Row="3" x:Name="stpUp" Orientation="Horizontal" Background="Transparent" Width="180" HorizontalAlignment="Center"
504 503
             Height="30" Margin="0,0,0,0" Grid.Column="1" VerticalAlignment="Bottom">
505
-                                <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
504
+                            <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
506 505
                     x:Name="btnLastPage"
507 506
                     Width="60" Height="20"
508 507
                     Click="BtnLastPage_Click">
509
-                                    <Button.Content>
510
-                                        <StackPanel>
511
-                                            <Image Width="16" Height="12" Source=".\Images\class_p1.png" />
512
-                                        </StackPanel>
513
-                                    </Button.Content>
514
-                                </Button>
515
-                                <Grid Width="60"  Background="Transparent">
516
-                                    <Grid.RowDefinitions>
517
-                                        <RowDefinition Height="311*"/>
518
-                                        <RowDefinition Height="483*"/>
519
-                                    </Grid.RowDefinitions>
520
-                                    <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,-12,0,0" Grid.Row="1"  Background="Transparent">
521
-                                        <StackPanel HorizontalAlignment="Center" Orientation="Horizontal"  Background="Transparent">
522
-                                            <TextBlock x:Name="txbCurrpageTwo" TextAlignment="Center" FontSize="15"/>
523
-                                            <TextBlock Text="/" TextAlignment="Center" FontSize="15"/>
524
-                                            <TextBlock x:Name="txbPageNumTwo" TextAlignment="Center" FontSize="15"/>
525
-                                        </StackPanel>
508
+                                <Button.Content>
509
+                                    <StackPanel>
510
+                                        <Image Width="16" Height="12" Source=".\Images\class_p1.png" />
526 511
                                     </StackPanel>
527
-                                </Grid>
528
-                                <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
512
+                                </Button.Content>
513
+                            </Button>
514
+                            <Grid Width="60"  Background="Transparent">
515
+                                <Grid.RowDefinitions>
516
+                                    <RowDefinition Height="311*"/>
517
+                                    <RowDefinition Height="483*"/>
518
+                                </Grid.RowDefinitions>
519
+                                <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,-12,0,0" Grid.Row="1"  Background="Transparent">
520
+                                    <StackPanel HorizontalAlignment="Center" Orientation="Horizontal"  Background="Transparent">
521
+                                        <TextBlock x:Name="txbCurrpageTwo" TextAlignment="Center" FontSize="15"/>
522
+                                        <TextBlock Text="/" TextAlignment="Center" FontSize="15"/>
523
+                                        <TextBlock x:Name="txbPageNumTwo" TextAlignment="Center" FontSize="15"/>
524
+                                    </StackPanel>
525
+                                </StackPanel>
526
+                            </Grid>
527
+                            <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
529 528
                     x:Name="btnNextPage"  Background="Transparent"
530 529
                     Width="60" Height="20"
531 530
                     Click="BtnNextPage_Click">
532
-                                    <Button.Content>
533
-                                        <StackPanel>
534
-                                            <Image Width="16" Height="12" Source=".\Images\class_p2.png" />
535
-                                        </StackPanel>
536
-                                    </Button.Content>
537
-                                </Button>
538
-                            </StackPanel>
531
+                                <Button.Content>
532
+                                    <StackPanel>
533
+                                        <Image Width="16" Height="12" Source=".\Images\class_p2.png" />
534
+                                    </StackPanel>
535
+                                </Button.Content>
536
+                            </Button>
537
+                        </StackPanel>
539 538
 
540
-                        </Grid>
541
-                    </Border>
542
-                </Grid>
543
-                <Grid Grid.Row="2" Background="#EFF1F8" Margin="0,0,0,0">
544
-                    <StackPanel Orientation="Horizontal" Margin="0,0,0,0">
545
-                        <TextBlock Text="颜色:" FontSize="14" Padding="10,10,0,0"/>
546
-                        <Button Cursor="Hand" x:Name="btnWhite" Background="#FFFFFF" Width="20" Height="20" Click="BtnWhite_Click" Margin="0,2,0,0" Visibility="Collapsed"/>
539
+                    </Grid>
540
+                </Border>
541
+            </Grid>
542
+            <Grid Grid.Row="2" Background="#EFF1F8" Margin="0,0,0,0">
543
+                <StackPanel Orientation="Horizontal" Margin="0,0,0,0">
544
+                    <TextBlock Text="颜色:" FontSize="14" Padding="10,10,0,0"/>
545
+                    <Button Cursor="Hand" x:Name="btnWhite" Background="#FFFFFF" Width="20" Height="20" Click="BtnWhite_Click" Margin="0,2,0,0" Visibility="Collapsed"/>
547 546
 
548 547
 
549
-                        <Button Cursor="Hand" x:Name="btnRed" Background="#FF0000" Width="20" Height="20" Margin="5,2,0,0" Click="BtnRed_Click">
550
-                            <Image x:Name="imgRed" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Visible"/>
551
-                        </Button>
552
-                        <Button Cursor="Hand" x:Name="btnGray" Background="#333333" Width="20" Height="20" Margin="5,2,0,0" Click="BtnGray_Click">
553
-                            <Image x:Name="imgGray" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
554
-                        </Button>
555
-                        <Button Cursor="Hand" x:Name="btnCyanBlue" Background="#63D600" Width="20" Height="20" Margin="5,2,0,0" Click="BtnCyanBlue_Click">
556
-                            <Image x:Name="imgCyanBlue" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
557
-                        </Button>
558
-                        <Button Cursor="Hand" x:Name="btnYellow" Background="#FFBC00" Width="20" Height="20" Margin="5,2,0,0" Click="BtnYellow_Click">
559
-                            <Image x:Name="imgYellow" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
560
-                        </Button>
561
-                        <Button Cursor="Hand" x:Name="btnBlue" Background="#00B4FC" Width="20" Height="20" Margin="5,2,0,0" Click="BtnBlue_Click">
562
-                            <Image x:Name="imgBlue" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
563
-                        </Button>
564
-                        <TextBlock Text="粗细:" FontSize="14" Padding="15,5,0,0" Margin="5,5,0,0"/>
565
-                        <RadioButton Cursor="Hand" x:Name="rbnFine" Content="细" FontSize="14" Margin="0,10,0,0" IsChecked="True" Click="RbnFine_Click"/>
566
-                        <RadioButton Cursor="Hand" x:Name="rbnIn" Content="中" FontSize="14" Margin="5,10,0,0" Click="RbnIn_Click"/>
567
-                        <RadioButton Cursor="Hand" x:Name="rbnCrude" Content="粗" FontSize="14" Margin="5,10,0,0" Click="RbnCrude_Click"/>
568
-                        <StackPanel Orientation="Horizontal">
569
-                            <TextBlock Text="摄像头:" FontSize="14" Padding="15,10,0,0"/>
570
-                            <RadioButton Cursor="Hand" x:Name="rbnOpen" Content="开" FontSize="14" Margin="0,10,0,0" Click="RbnOpen_Click"/>
571
-                            <RadioButton Cursor="Hand" x:Name="rbnTurnOff" Content="关" FontSize="14" Margin="5,10,0,0" IsChecked="True" Click="RbnTurnOff_Click"/>
572
-                        </StackPanel>
573
-                    </StackPanel>
574
-                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,5,10,0">
575
-                        <TextBlock Text="智能笔状态:" FontSize="14" Padding="0,5,0,0"/>
576
-                        <TextBlock x:Name="txbNotConnected" Text="未连接" FontSize="14" Padding="0,5,5,0"/>
548
+                    <Button Cursor="Hand" x:Name="btnRed" Background="#FF0000" Width="20" Height="20" Margin="5,2,0,0" Click="BtnRed_Click">
549
+                        <Image x:Name="imgRed" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Visible"/>
550
+                    </Button>
551
+                    <Button Cursor="Hand" x:Name="btnGray" Background="#333333" Width="20" Height="20" Margin="5,2,0,0" Click="BtnGray_Click">
552
+                        <Image x:Name="imgGray" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
553
+                    </Button>
554
+                    <Button Cursor="Hand" x:Name="btnCyanBlue" Background="#63D600" Width="20" Height="20" Margin="5,2,0,0" Click="BtnCyanBlue_Click">
555
+                        <Image x:Name="imgCyanBlue" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
556
+                    </Button>
557
+                    <Button Cursor="Hand" x:Name="btnYellow" Background="#FFBC00" Width="20" Height="20" Margin="5,2,0,0" Click="BtnYellow_Click">
558
+                        <Image x:Name="imgYellow" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
559
+                    </Button>
560
+                    <Button Cursor="Hand" x:Name="btnBlue" Background="#00B4FC" Width="20" Height="20" Margin="5,2,0,0" Click="BtnBlue_Click">
561
+                        <Image x:Name="imgBlue" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
562
+                    </Button>
563
+                    <TextBlock Text="粗细:" FontSize="14" Padding="15,5,0,0" Margin="5,5,0,0"/>
564
+                    <RadioButton Cursor="Hand" x:Name="rbnFine" Content="细" FontSize="14" Margin="0,10,0,0" IsChecked="True" Click="RbnFine_Click"/>
565
+                    <RadioButton Cursor="Hand" x:Name="rbnIn" Content="中" FontSize="14" Margin="5,10,0,0" Click="RbnIn_Click"/>
566
+                    <RadioButton Cursor="Hand" x:Name="rbnCrude" Content="粗" FontSize="14" Margin="5,10,0,0" Click="RbnCrude_Click"/>
567
+                    <StackPanel Orientation="Horizontal">
568
+                        <TextBlock Text="摄像头:" FontSize="14" Padding="15,10,0,0"/>
569
+                        <RadioButton Cursor="Hand" x:Name="rbnOpen" Content="开" FontSize="14" Margin="0,10,0,0" Click="RbnOpen_Click"/>
570
+                        <RadioButton Cursor="Hand" x:Name="rbnTurnOff" Content="关" FontSize="14" Margin="5,10,0,0" IsChecked="True" Click="RbnTurnOff_Click"/>
577 571
                     </StackPanel>
578
-                </Grid>
572
+                </StackPanel>
573
+                <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,5,10,0">
574
+                    <TextBlock Text="智能笔状态:" FontSize="14" Padding="0,5,0,0"/>
575
+                    <TextBlock x:Name="txbNotConnected" Text="未连接" FontSize="14" Padding="0,5,5,0"/>
576
+                </StackPanel>
579 577
             </Grid>
580
-        </Border>
578
+        </Grid>
581 579
     </Viewbox>
582 580
 </Window>

+ 1
- 10
XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs Parādīt failu

@@ -2918,15 +2918,6 @@ namespace XHWK.WKTool
2918 2918
 
2919 2919
                     if (dAL_Upload.UploadVideo(pageData.menuList[i].FileGuid, out string ErrMessage))
2920 2920
                     {
2921
-                        //foreach (Model_WKData wKData in APP.WKDataList)
2922
-                        //{
2923
-                        //    if (wKData.VideoList == null)
2924
-                        //        continue;
2925
-                        //    //if()
2926
-                        //    //{
2927
-
2928
-                        //    //}
2929
-                        //}
2930 2921
                             pageData.menuList[i].Visi = "Collapsed";
2931 2922
                         pageData.menuList[i].Coll = "Visible";
2932 2923
 
@@ -2939,7 +2930,7 @@ namespace XHWK.WKTool
2939 2930
                             APP.W_UploadWindow.Owner = this;
2940 2931
                         }
2941 2932
                         //long size = Convert.ToInt64(FileToolsCommon.GetFileSizeByMB(pageData.menuList[i].FilePath));
2942
-                            APP.W_UploadWindow.Initialize(pageData.menuList[i].VideoName,11110 /*Convert.ToInt64(pageData.menuList[i].VideoSize)*/, pageData.menuList[i].VideoType);
2933
+                            APP.W_UploadWindow.Initialize(pageData.menuList[i].VideoName,11110 /*Convert.ToInt64(pageData.menuList[i].VideoSize)*/, pageData.menuList[i].VideoType, pageData.menuList[i].FileGuid);
2943 2934
                         APP.W_UploadWindow.ShowDialog();
2944 2935
                      
2945 2936
                     }

Notiek ielāde…
Atcelt
Saglabāt