Ver código fonte

zhao:解决冲突

tags/录制修改前
耀 4 anos atrás
pai
commit
7737dfd5bc

+ 8
- 0
Common/system/BlackboardNew.cs Ver arquivo

@@ -111,6 +111,14 @@ namespace Common.system
111 111
         {
112 112
             if (step != null)
113 113
             {
114
+                if (pagenum + 1 > strokes_page_all.Count)
115
+                {
116
+                    ZBBPage pagetemp = new ZBBPage();
117
+                    pagetemp.lines.Add(new ZBBPageStep());
118
+                    strokes_page_all.Add(pagetemp);
119
+                }
120
+
121
+
114 122
                 ZBBPage page = strokes_page_all[pagenum];
115 123
                 if (page != null)
116 124
                 {

+ 4
- 0
XHWK.WKTool/CreateAMicroLessonWindow.xaml.cs Ver arquivo

@@ -132,11 +132,15 @@ namespace XHWK.WKTool
132 132
             if (APP.W_XHMicroLessonSystemWindow == null)
133 133
             {
134 134
                 APP.W_XHMicroLessonSystemWindow = new XHMicroLessonSystemWindow();
135
+
135 136
                 //APP.W_XHMicroLessonSystemWindow .Topmost = true;
136 137
             }
137 138
             APP.W_XHMicroLessonSystemWindow.Show();
138 139
             this.Hide();
139 140
         }
141
+        double screeHeight = SystemParameters.FullPrimaryScreenHeight;
142
+
143
+        double screeWidth = SystemParameters.FullPrimaryScreenWidth;
140 144
         /// <summary>
141 145
         /// 窗体移动
142 146
         /// </summary>

+ 48
- 0
XHWK.WKTool/DAL/DAL_Upload.cs Ver arquivo

@@ -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
                     {

+ 4
- 3
XHWK.WKTool/JieTuWindow.xaml.cs Ver arquivo

@@ -234,7 +234,8 @@ namespace ComeCapture
234 234
             //string imagePath = ImageHelper.GetImagePath(out string serverSavePath);
235 235
 
236 236
             //BitmapSource bitmap = ImageHelper.GetBitmapSource((int)AppModel.Current.MaskLeftWidth + 1, (int)AppModel.Current.MaskTopHeight + 1, (int)MainImage.ActualWidth - 2, (int)MainImage.ActualHeight - 2, out JieTuBitmapPtr);
237
-           /* BitmapImage bitmap = */ImageHelper.GetScreenshot(new Rectangle((int)AppModel.Current.MaskLeftWidth + 1, (int)AppModel.Current.MaskTopHeight + 1, (int)MainImage.ActualWidth - 2, (int)MainImage.ActualHeight - 2), imagePath,true,out BitmapImage bitmapimg);
237
+           /* BitmapImage bitmap = */
238
+            ImageHelper.GetScreenshot(new Rectangle((int)AppModel.Current.MaskLeftWidth + 1, (int)AppModel.Current.MaskTopHeight + 1, (int)MainImage.ActualWidth - 2, (int)MainImage.ActualHeight - 2), imagePath,true,out BitmapImage bitmapimg);
238 239
             _IsMouseDown = false;
239 240
             _IsCapture = false;
240 241
             ImageEditBar.Current.Visibility = Visibility.Collapsed;
@@ -242,8 +243,8 @@ namespace ComeCapture
242 243
             SizeRGB.Visibility = Visibility.Collapsed;
243 244
             MainImage.Visibility = Visibility.Collapsed;
244 245
             DataContext = new AppModel();
245
-            ImageHelper.GetScreenshot(new Rectangle(0, 0, 0, 0), imagePath, true, out BitmapImage bitmap);//zxy
246
-            Background = new ImageBrush(bitmap);
246
+            //ImageHelper.GetScreenshot(new Rectangle(0, 0, 0, 0), imagePath, true, out BitmapImage bitmap);//zxy
247
+            //Background = new ImageBrush(bitmap);
247 248
             WpfHelper.MainDispatcher = Dispatcher;
248 249
             MaxWindow();
249 250
             MaskLeft.Height = ScreenHeight;

+ 7
- 7
XHWK.WKTool/PrintWindow.xaml.cs Ver arquivo

@@ -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);

+ 33
- 1
XHWK.WKTool/ScreenRecordingToolbarWindow.xaml.cs Ver arquivo

@@ -1,4 +1,5 @@
1
-using Common.system;
1
+using Aspose.Pdf.Text;
2
+using Common.system;
2 3
 
3 4
 using System;
4 5
 using System.Configuration;
@@ -62,6 +63,7 @@ namespace XHWK.WKTool
62 63
         /// 🖊状态 0红色 1蓝色 10红色批注内 11蓝色批注内
63 64
         /// </summary>
64 65
        public int flg = 0;
66
+        System.Timers.Timer timer = new System.Timers.Timer();
65 67
         #endregion
66 68
 
67 69
         #region 初始化
@@ -77,6 +79,11 @@ namespace XHWK.WKTool
77 79
         /// </summary>
78 80
         public void Initialize()
79 81
         {
82
+            //timer = new System.Timers.Timer(200);
83
+            //timer.Interval = 300;
84
+            //timer.Elapsed += new System.Timers.ElapsedEventHandler(TimerDealy);
85
+            //timer.Enabled = true; //启动计时器
86
+
80 87
             k_hook = new KeyboardHookCommon();
81 88
             k_hook.KeyDownEvent += K_hook_KeyDownEvent;
82 89
 
@@ -115,7 +122,32 @@ namespace XHWK.WKTool
115 122
             //ImgRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar25.png"));
116 123
             //BtnRecordingScreen_Click(null, null);
117 124
         }
125
+        void TimerDealy(object o, EventArgs e)
126
+        {
127
+            Dispatcher.Invoke(() =>
128
+            {
129
+                if (this.Left > 1630)
130
+                {
131
+                    return;
132
+                }
133
+                //获取鼠标在屏幕上的位置
134
+                double mouse_x = Form.MousePosition.X;   //需要添加引用System.Drawing
135
+                double mouse_y = Form.MousePosition.Y;
136
+
137
+                bool is_in_collasped_range = (mouse_y > this.Left + this.Height) || (mouse_x < this.Left || mouse_x > this.Left + this.Width);//缩起的条件
138
+                bool is_in_visiable_range = (mouse_y < 1 && mouse_x >= this.Left && mouse_x <= this.Left + this.Width); //展开的条件         
118 139
 
140
+                if (this.Left < 1630 && this.Left >= 0 && is_in_collasped_range)
141
+                {
142
+                    System.Threading.Thread.Sleep(300);
143
+                    this.Left +=20 /*-this.ActualWidth - 3*/;
144
+                }
145
+                else if (this.Left < 0 && is_in_visiable_range)
146
+                {
147
+                    this.Left = 1;
148
+                }
149
+            });
150
+        }
119 151
         private void K_hook_KeyDownEvent(object sender, System.Windows.Forms.KeyEventArgs e)
120 152
         {
121 153
             if (e.KeyValue == (int)System.Windows.Forms.Keys.F5 && (int)Control.ModifierKeys == (int)Keys.Control)

+ 18
- 13
XHWK.WKTool/UploadWindow.xaml Ver arquivo

@@ -16,9 +16,9 @@
16 16
             <!--分4行-->
17 17
             <Grid.RowDefinitions>
18 18
                 <RowDefinition Height="45"/>
19
-                <RowDefinition Height="80"/>
20
-                <RowDefinition Height="60"/>
21
-                <RowDefinition Height="60"/>
19
+                <RowDefinition Height="30"/>
20
+                <RowDefinition Height="90"/>
21
+                <RowDefinition Height="90"/>
22 22
                 <RowDefinition Height="*"/>
23 23
             </Grid.RowDefinitions>
24 24
             <!--第一行 标题-->
@@ -32,19 +32,19 @@
32 32
             <ComboBox Cursor="Hand"
33 33
                             x:Name="book_list"
34 34
                             Grid.Row="2"
35
-                            Height="30"
36
-                      Width="300"
35
+                            Height="50"
36
+                      Width="400"
37 37
                             Margin="0,0,0,0"
38 38
                             Padding="10,0,0,0"
39 39
                             VerticalContentAlignment="Center"
40 40
                             DisplayMemberPath="Value"
41
-                            FontSize="14"
41
+                            FontSize="18"
42 42
                             ItemsSource="{Binding bookList}"
43 43
                             SelectedValuePath="Key"
44
-                      SelectionChanged="toolbar_list_SelectionChanged"
44
+                      SelectionChanged="toolbar_list_SelectionChanged" BorderBrush="#FFCDD6E0" Foreground="Black" Background="White"
45 45
                           >
46 46
                 <ComboBox.Resources>
47
-                    <SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}" Color="WhiteSmoke" />
47
+                    <SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}" Color="White" />
48 48
                     <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Gray" />
49 49
                 </ComboBox.Resources>
50 50
             </ComboBox>
@@ -52,16 +52,21 @@
52 52
             <ComboBox Cursor="Hand"
53 53
                             x:Name="cmbTeachingMaterial"
54 54
                             Grid.Row="3"
55
-                               Height="30"
56
-                             Width="300"
55
+                               Height="50"
56
+                             Width="400"
57 57
                             Padding="10,0,0,0"
58 58
                             VerticalContentAlignment="Center"
59
-                            Background="White"
59
+                          
60 60
                             DisplayMemberPath="Value"
61
-                            FontSize="14"
61
+                            FontSize="18"
62 62
                             Foreground="Black"
63 63
                             ItemsSource="{Binding zhangjieList}"
64
-                            SelectedValuePath="Key" />
64
+                            SelectedValuePath="Key" BorderBrush="#FFCDD6E0" >
65
+                <ComboBox.Resources>
66
+                    <SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}" Color="White" />
67
+                    <!--<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Green" />-->
68
+                </ComboBox.Resources>
69
+            </ComboBox>
65 70
             <!--第四行 开始按钮-->
66 71
             <Button  Cursor="Hand" Grid.Row="4" x:Name="btnStart" Content="确定" FontSize="18" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="418" Height="43" Margin="10,0,10,0" Click="BtnStart_Click">
67 72
                 <Button.Template>

+ 83
- 57
XHWK.WKTool/UploadWindow.xaml.cs Ver arquivo

@@ -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
     }

+ 340
- 337
XHWK.WKTool/XHMicroLessonSystemWindow.xaml Ver arquivo

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

+ 1138
- 1113
XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 2
- 2
XHWK.WKTool/ZConfig.cs Ver arquivo

@@ -13,9 +13,9 @@ namespace XHWK.WKTool.Config
13 13
         /// <summary>
14 14
         /// 当前版本号
15 15
         /// </summary>
16
-        public static int versionCode = 4;
16
+        public static int versionCode = 6;
17 17
 
18
-        public static string versionName = "1.0.3";
18
+        public static string versionName = "1.0.5";
19 19
 
20 20
         //接口地址
21 21
         public static string apiUrl = isDebug ? "http://schoolapitest.xhkjedu.com" : "http://schoolapi.xhkjedu.com";

Carregando…
Cancelar
Salvar