Browse Source

录制结束清除 屏幕 笔迹图片。 工具栏未完成

tags/录制修改前
zhangxueyang 4 years ago
parent
commit
6a650794a7

+ 2
- 1
Common/system/BlackboardNew.cs View File

@@ -238,6 +238,7 @@ namespace Common.system
238 238
             //strokes_page_all.Add(page);
239 239
 
240 240
             strokes_page_all.Clear();
241
+            m_canvas.Strokes.Clear();
241 242
             //for (int i=0;i< strokes_page_all.Count;i++)
242 243
             //{
243 244
             //    ZBBPage page = strokes_page_all[pagenum];
@@ -250,7 +251,7 @@ namespace Common.system
250 251
             //    }
251 252
             //}
252 253
 
253
-          
254
+
254 255
         }
255 256
 
256 257
         public void changepage(int mpagenum)

BIN
XHWK.WKTool/Images/31.png View File


BIN
XHWK.WKTool/Images/32.png View File


BIN
XHWK.WKTool/Images/Toobar0.png View File


BIN
XHWK.WKTool/Images/Toobar25.png View File


BIN
XHWK.WKTool/Images/Toobar26.png View File


BIN
XHWK.WKTool/Images/Toobar27.png View File


BIN
XHWK.WKTool/Images/Toobar28.png View File


BIN
XHWK.WKTool/Images/Toobar29.png View File


BIN
XHWK.WKTool/Images/Toobar30.png View File


+ 15
- 6
XHWK.WKTool/ScreenRecordingToolbarWindow.xaml View File

@@ -73,16 +73,25 @@
73 73
             </Grid>
74 74
 
75 75
             <Image Grid.Row="1"  Source="./Images/Toobar0.png"/>
76
-            <TextBlock Grid.Row="1" x:Name="txbTime" Text="00:00" FontSize="23" Foreground="#FFFFFF" Margin="30,50,0,0"/>
76
+            <Button Grid.Row="1" x:Name="BtnRecordingScreen" HorizontalAlignment="Left"  Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="46,0,15,0" Click="BtnRecordingScreen_Click">
77
+                <Image x:Name="ImgRecordingScreen" Source="./Images/Toobar25.png"/>
78
+            </Button>
79
+            <TextBlock Grid.Row="1" x:Name="txbTime" Text="00:00" FontSize="20" Foreground="#FFFFFF" Margin="39,80,0,0" Visibility="Hidden"/>
77 80
             <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,15,0">
78
-                <Button x:Name="BtnRecordingScreen"  Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,15,0" Click="BtnRecordingScreen_Click">
81
+                <!--<Button x:Name="BtnRecordingScreen"  Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,15,0" Click="BtnRecordingScreen_Click">
79 82
                     <Image x:Name="ImgRecordingScreen" Source="./Images/Toobar25.png"/>
80
-                </Button>
81
-                <Button x:Name="BtnStopRecordingScreen" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,15,0" Click="BtnStopRecordingScreen_Click">
83
+                </Button>-->
84
+                <Button x:Name="BtnStopRecordingScreen" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,20,0" Click="BtnStopRecordingScreen_Click">
82 85
                     <Image x:Name="ImgEndRecordingScreen" Source="./Images/Toobar14.png"/>
83 86
                 </Button>
84
-                <Button  Cursor="Hand" x:Name="btnBlackPen" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,10,0" Click="BtnBlackPen_Click">
85
-                    <Image Source="./Images/Toobar8.png"/>
87
+                <Button  Cursor="Hand" x:Name="btnBlackPenOne" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,20,0" Click="BtnBlackPen_Click">
88
+                    <Image Source="./Images/Toobar27.png"/>
89
+                </Button>
90
+                <Button  Cursor="Hand" x:Name="btnBlackPenTwo" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,20,0" Click="BtnBlackPen_Click">
91
+                    <Image Source="./Images/Toobar28.png"/>
92
+                </Button>
93
+                <Button  Cursor="Hand" x:Name="btnBlackPen" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,20,0" Click="BtnBlackPen_Click">
94
+                    <Image Source="./Images/Toobar29.png"/>
86 95
                 </Button>
87 96
             </StackPanel>
88 97
         </Grid>

+ 2
- 1
XHWK.WKTool/ScreenRecordingToolbarWindow.xaml.cs View File

@@ -87,7 +87,7 @@ namespace XHWK.WKTool
87 87
             gridToolbar.Visibility = Visibility.Hidden;
88 88
             gridColour.Visibility = Visibility.Hidden;
89 89
             gridThickness.Visibility = Visibility.Hidden;
90
-            ImgRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/microLessonSystem_14.png"));
90
+            ImgRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar26.png"));
91 91
             if (t == null)
92 92
             {
93 93
                 t = new DispatcherTimer();
@@ -228,6 +228,7 @@ namespace XHWK.WKTool
228 228
                 //#endregion
229 229
 
230 230
                 ImgRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar25.png"));
231
+                txbTime.Visibility = Visibility.Visible;
231 232
                 try
232 233
                 {
233 234
                     new Thread(new ThreadStart(new Action(() =>

+ 4
- 4
XHWK.WKTool/XHMicroLessonSystemWindow.xaml View File

@@ -164,7 +164,7 @@
164 164
                              MouseLeftButtonUp="IMG1_MouseLeftButtonUp"
165 165
                              MouseMove="IMG1_MouseMove"
166 166
                              MouseWheel="IMG1_MouseWheel" >
167
-                                                <Image Name="imgCanvas" Width="635" Height="auto" VerticalAlignment="Top" HorizontalAlignment="Left" Stretch="Uniform" MouseDown="PicEMap_MouseDown" RenderTransform="{StaticResource Imageview}" MouseRightButtonDown="imgCanvas_MouseRightButtonDown">
167
+                                                <Image Name="imgCanvas" Width="635" Height="auto" VerticalAlignment="Top" HorizontalAlignment="Left" Stretch="Uniform" MouseDown="PicEMap_MouseDown" RenderTransform="{StaticResource Imageview}" MouseRightButtonDown="imgCanvas_MouseRightButtonDown" Visibility="Collapsed">
168 168
                                                 </Image>
169 169
                                             </ContentControl>
170 170
                                         </ScrollViewer>
@@ -172,7 +172,7 @@
172 172
                                 </Border>
173 173
                             </Grid>
174 174
                             <!--导入图片-->
175
-                            <Image x:Name="imgDocumentation" Source="./Images/microLessonSystem_18.png"/>
175
+                            <Image x:Name="imgDocumentation" Visibility="Collapsed"/>
176 176
                             <!--<Button Cursor="Hand" x:Name="btnOk" Height="50" Width="50" Content="√" FontSize="26" Background="#2E8CF0" Foreground="#FFFFFF" Click="btnOk_Click" Visibility="Collapsed"/>-->
177 177
                             <InkCanvas Grid.Row="0" x:Name="blackboard_canvas"  Background="Transparent" Visibility="Collapsed" Grid.ColumnSpan="2" />
178 178
                             <!--摄像头-->
@@ -195,8 +195,8 @@
195 195
                     <Label Content="" Grid.Column="1" Height="2" Width="2" Background="#FF0F0F0F" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,16,0"/>
196 196
                 </Grid>
197 197
                 <!--页码-->
198
-                <Grid Grid.Row="1" x:Name="gridPage" Visibility="Collapsed" Background="#FFFFFF">
199
-                    <StackPanel Grid.Row="0" Orientation="Horizontal" Background="#FFFFFF" Width="180" HorizontalAlignment="Center"
198
+                <Grid Grid.Row="1" x:Name="gridPage" Visibility="Collapsed">
199
+                    <StackPanel Grid.Row="0" Orientation="Horizontal" Background="Transparent" Width="180" HorizontalAlignment="Center"
200 200
             Height="30" Margin="0,0,0,0" Grid.Column="1" VerticalAlignment="Bottom">
201 201
                     <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
202 202
                     x:Name="last_button"

+ 4
- 2
XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs View File

@@ -1490,6 +1490,8 @@ namespace XHWK.WKTool
1490 1490
                     APP.pageData.pagenum = 0;
1491 1491
                     myblackboard.clear();
1492 1492
                     APP.PageDrawList.Clear();
1493
+                    imgCanvas.Source = null;
1494
+                    imgDocumentation.Source = null;
1493 1495
                     #endregion
1494 1496
 
1495 1497
                     //缩略图
@@ -1590,7 +1592,7 @@ namespace XHWK.WKTool
1590 1592
             APP.pageData.pagenum += 1;
1591 1593
             gridPage.Visibility = Visibility.Visible;//页码大于0 显示
1592 1594
             APP.pageData.currpage = APP.pageData.pagenum;
1593
-            myblackboard.changepage(APP.pageData.currpage - 1);
1595
+            //myblackboard.changepage(APP.pageData.currpage - 1);
1594 1596
             ///清空页面图片UI
1595 1597
             imgCanvas.Source = null;
1596 1598
             imgDocumentation.Source = null;
@@ -1598,7 +1600,7 @@ namespace XHWK.WKTool
1598 1600
             Model_DrawData model_DrawData = new Model_DrawData();
1599 1601
             model_DrawData.PageNum = APP.pageData.currpage;
1600 1602
             APP.PageDrawList.Add(model_DrawData);
1601
-            APP.SaveDraw();
1603
+            //APP.SaveDraw();
1602 1604
             if (btnImport.IsEnabled == true)
1603 1605
             {
1604 1606
                 ///截图可用

+ 2
- 2
XHWK.WKTool/ZConfig.cs View File

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

Loading…
Cancel
Save