Browse Source

优化

tags/录制修改前
zhangxueyang 4 years ago
parent
commit
603b4344a5

+ 1
- 8
XHWK.WKTool/XHMicroLessonSystemWindow.xaml View File

152
                 <Image x:Name="imgPlayerRight" Width="172" Height="124" Source="./Images/microLessonSystem_17.png"  HorizontalAlignment="Right"  Margin="10,7,10,10" VerticalAlignment="Top" Visibility="Collapsed"/>
152
                 <Image x:Name="imgPlayerRight" Width="172" Height="124" Source="./Images/microLessonSystem_17.png"  HorizontalAlignment="Right"  Margin="10,7,10,10" VerticalAlignment="Top" Visibility="Collapsed"/>
153
                 <Image x:Name="imgPlayerLeftUnder" Width="172" Height="124" Source="./Images/microLessonSystem_17.png"  HorizontalAlignment="Left"  Margin="10,7,10,10" VerticalAlignment="Bottom" Visibility="Collapsed"/>
153
                 <Image x:Name="imgPlayerLeftUnder" Width="172" Height="124" Source="./Images/microLessonSystem_17.png"  HorizontalAlignment="Left"  Margin="10,7,10,10" VerticalAlignment="Bottom" Visibility="Collapsed"/>
154
                 <Image x:Name="imgPlayerRightUnder" Width="172" Height="124" Source="./Images/microLessonSystem_17.png"  HorizontalAlignment="Right" Margin="10,7,10,10" VerticalAlignment="Bottom" Visibility="Collapsed"/>
154
                 <Image x:Name="imgPlayerRightUnder" Width="172" Height="124" Source="./Images/microLessonSystem_17.png"  HorizontalAlignment="Right" Margin="10,7,10,10" VerticalAlignment="Bottom" Visibility="Collapsed"/>
155
-                <StackPanel Grid.Row="0" Orientation="Horizontal" Background="#FFFFFF" Width="180" HorizontalAlignment="Right"
155
+                <StackPanel Grid.Row="0" Orientation="Horizontal" Background="#FFFFFF" Width="180" HorizontalAlignment="Center"
156
             Height="58" Margin="0,830,20,0" Grid.Column="1">
156
             Height="58" Margin="0,830,20,0" Grid.Column="1">
157
                     <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
157
                     <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
158
                     x:Name="last_button"
158
                     x:Name="last_button"
161
                         <Button.Content>
161
                         <Button.Content>
162
                             <StackPanel>
162
                             <StackPanel>
163
                                 <Image Width="16" Source=".\Images\class_p1.png" />
163
                                 <Image Width="16" Source=".\Images\class_p1.png" />
164
-                                <TextBlock Margin="0,8,0,0" Text="上一页" />
165
                             </StackPanel>
164
                             </StackPanel>
166
                         </Button.Content>
165
                         </Button.Content>
167
                     </Button>
166
                     </Button>
177
                                 <TextBlock Text="/" TextAlignment="Center" FontSize="15"/>
176
                                 <TextBlock Text="/" TextAlignment="Center" FontSize="15"/>
178
                                 <TextBlock Text="{Binding pagenum}" TextAlignment="Center" FontSize="15"/>
177
                                 <TextBlock Text="{Binding pagenum}" TextAlignment="Center" FontSize="15"/>
179
                             </StackPanel>
178
                             </StackPanel>
180
-
181
-                            <TextBlock
182
-                            Margin="0,8,0,0"
183
-                            HorizontalAlignment="Center"
184
-                            Text="页码" />
185
                         </StackPanel>
179
                         </StackPanel>
186
                     </Grid>
180
                     </Grid>
187
                     <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
181
                     <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
191
                         <Button.Content>
185
                         <Button.Content>
192
                             <StackPanel>
186
                             <StackPanel>
193
                                 <Image Width="16" Source=".\Images\class_p2.png" />
187
                                 <Image Width="16" Source=".\Images\class_p2.png" />
194
-                                <TextBlock Margin="0,8,0,0" Text="下一页" />
195
                             </StackPanel>
188
                             </StackPanel>
196
                         </Button.Content>
189
                         </Button.Content>
197
                     </Button>
190
                     </Button>

+ 0
- 20
XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs View File

653
         /// <param name="e"></param>
653
         /// <param name="e"></param>
654
         private void BtnScreenshot_Click(object sender, RoutedEventArgs e)
654
         private void BtnScreenshot_Click(object sender, RoutedEventArgs e)
655
         {
655
         {
656
-            if (APP.IsLoginType == false)
657
-            {
658
-                Login();
659
-                return;
660
-            }
661
             string time = GetTimeStamp();
656
             string time = GetTimeStamp();
662
             string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) + time + ".jpg";
657
             string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) + time + ".jpg";
663
             ImageHelper.GetScreenshot(new System.Drawing.Rectangle(0, 0, 0, 0), desktopPath);
658
             ImageHelper.GetScreenshot(new System.Drawing.Rectangle(0, 0, 0, 0), desktopPath);
1024
         /// <param name="e"></param>
1019
         /// <param name="e"></param>
1025
         private void BtnRecord_Click(object sender, RoutedEventArgs e)
1020
         private void BtnRecord_Click(object sender, RoutedEventArgs e)
1026
         {
1021
         {
1027
-            if (APP.IsLoginType == false)
1028
-            {
1029
-                Login();
1030
-                return;
1031
-            }
1032
 
1022
 
1033
             blackboard_canvas.Visibility = Visibility.Visible;
1023
             blackboard_canvas.Visibility = Visibility.Visible;
1034
             StartRecord();
1024
             StartRecord();
1040
         /// <param name="e"></param>
1030
         /// <param name="e"></param>
1041
         private void BtnStop_Click(object sender, RoutedEventArgs e)
1031
         private void BtnStop_Click(object sender, RoutedEventArgs e)
1042
         {
1032
         {
1043
-            if (APP.IsLoginType == false)
1044
-            {
1045
-                Login();
1046
-                return;
1047
-            }
1048
             blackboard_canvas.Visibility = Visibility.Collapsed;
1033
             blackboard_canvas.Visibility = Visibility.Collapsed;
1049
             EndRecord();
1034
             EndRecord();
1050
         }
1035
         }
1342
         /// <param name="e"></param>
1327
         /// <param name="e"></param>
1343
         private void BtnPrint_Click(object sender, RoutedEventArgs e)
1328
         private void BtnPrint_Click(object sender, RoutedEventArgs e)
1344
         {
1329
         {
1345
-            if (APP.IsLoginType == false)
1346
-            {
1347
-                Login();
1348
-                return;
1349
-            }
1350
             try
1330
             try
1351
             {
1331
             {
1352
                 iTextSharp.text.Document document = new iTextSharp.text.Document(iTextSharp.text.PageSize.A4, 25, 25, 25, 25);
1332
                 iTextSharp.text.Document document = new iTextSharp.text.Document(iTextSharp.text.PageSize.A4, 25, 25, 25, 25);

Loading…
Cancel
Save