ソースを参照

优化

tags/录制修改前
zhangxueyang 4年前
コミット
603b4344a5
2個のファイルの変更1行の追加28行の削除
  1. 1
    8
      XHWK.WKTool/XHMicroLessonSystemWindow.xaml
  2. 0
    20
      XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs

+ 1
- 8
XHWK.WKTool/XHMicroLessonSystemWindow.xaml ファイルの表示

@@ -152,7 +152,7 @@
152 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 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 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 156
             Height="58" Margin="0,830,20,0" Grid.Column="1">
157 157
                     <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
158 158
                     x:Name="last_button"
@@ -161,7 +161,6 @@
161 161
                         <Button.Content>
162 162
                             <StackPanel>
163 163
                                 <Image Width="16" Source=".\Images\class_p1.png" />
164
-                                <TextBlock Margin="0,8,0,0" Text="上一页" />
165 164
                             </StackPanel>
166 165
                         </Button.Content>
167 166
                     </Button>
@@ -177,11 +176,6 @@
177 176
                                 <TextBlock Text="/" TextAlignment="Center" FontSize="15"/>
178 177
                                 <TextBlock Text="{Binding pagenum}" TextAlignment="Center" FontSize="15"/>
179 178
                             </StackPanel>
180
-
181
-                            <TextBlock
182
-                            Margin="0,8,0,0"
183
-                            HorizontalAlignment="Center"
184
-                            Text="页码" />
185 179
                         </StackPanel>
186 180
                     </Grid>
187 181
                     <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
@@ -191,7 +185,6 @@
191 185
                         <Button.Content>
192 186
                             <StackPanel>
193 187
                                 <Image Width="16" Source=".\Images\class_p2.png" />
194
-                                <TextBlock Margin="0,8,0,0" Text="下一页" />
195 188
                             </StackPanel>
196 189
                         </Button.Content>
197 190
                     </Button>

+ 0
- 20
XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs ファイルの表示

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

読み込み中…
キャンセル
保存