Browse Source

zhao:优化点阵笔

tags/录制修改前
耀 3 years ago
parent
commit
4c06d22ec7
1 changed files with 15 additions and 9 deletions
  1. 15
    9
      XHWK.WKTool/ScreenRecordingToolbarWindow.xaml.cs

+ 15
- 9
XHWK.WKTool/ScreenRecordingToolbarWindow.xaml.cs View File

605
                 APP.W_XHMicroLessonSystemWindow = new XHMicroLessonSystemWindow();
605
                 APP.W_XHMicroLessonSystemWindow = new XHMicroLessonSystemWindow();
606
             }
606
             }
607
             APP.W_XHMicroLessonSystemWindow.InitializeKeyDownEvent();
607
             APP.W_XHMicroLessonSystemWindow.InitializeKeyDownEvent();
608
-            APP.W_XHMicroLessonSystemWindow.InitPen(); 
608
+            APP.W_XHMicroLessonSystemWindow.InitPen();
609
             APP.W_XHMicroLessonSystemWindow.InitTQLPPen();
609
             APP.W_XHMicroLessonSystemWindow.InitTQLPPen();
610
             APP.W_XHMicroLessonSystemWindow.Show();
610
             APP.W_XHMicroLessonSystemWindow.Show();
611
             if (!IsFirstRS)
611
             if (!IsFirstRS)
733
                                     Left = 0,
733
                                     Left = 0,
734
                                     Top = 0
734
                                     Top = 0
735
                                 };
735
                                 };
736
-                            //practiceWin.Owner = this;
737
-                        }
738
-                        //APP.W_PracticeWindow.InitPen();
739
-                        //APP.W_PracticeWindow.InitTQLPPen();
740
-                        APP.W_PracticeWindow.Initialize();// imagePath);
741
-                        flg = 11;
736
+                                //practiceWin.Owner = this;
737
+                            }
738
+                            //APP.W_PracticeWindow.InitPen();
739
+                            //APP.W_PracticeWindow.InitTQLPPen();
740
+                            APP.W_PracticeWindow.Initialize();// imagePath);
741
+                            APP.W_PracticeWindow.Focus();
742
+                            flg = 11;
742
                             APP.W_PracticeWindow.Blue();
743
                             APP.W_PracticeWindow.Blue();
743
                             APP.W_PracticeWindow.Show();
744
                             APP.W_PracticeWindow.Show();
744
                         });
745
                         });
745
                         new Thread(new ThreadStart(new Action(() =>
746
                         new Thread(new ThreadStart(new Action(() =>
746
                         {
747
                         {
748
+                            Dispatcher.Invoke(() =>
749
+                            {
750
+                                APP.W_PracticeWindow.Topmost = true;
751
+                            });
747
                             Thread.Sleep(100);
752
                             Thread.Sleep(100);
748
                             Dispatcher.Invoke(() =>
753
                             Dispatcher.Invoke(() =>
749
                             {
754
                             {
750
-                                Owner = APP.W_PracticeWindow;
755
+                                APP.W_PracticeWindow.Topmost = false;
756
+                                //Owner = APP.W_PracticeWindow;
751
                                 Topmost = true;
757
                                 Topmost = true;
752
                             });
758
                             });
753
                         }))).Start();
759
                         }))).Start();
1366
 
1372
 
1367
         private void gridToobarTwo_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e)
1373
         private void gridToobarTwo_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e)
1368
         {
1374
         {
1369
-            if(BtnRecordingScreen.ToolTip.ToString().Equals ("暂停")&& gridToobar.Visibility == Visibility.Visible)
1375
+            if (BtnRecordingScreen.ToolTip.ToString().Equals("暂停") && gridToobar.Visibility == Visibility.Visible)
1370
             {
1376
             {
1371
                 if (APP.IsHideSRTool)
1377
                 if (APP.IsHideSRTool)
1372
                 {
1378
                 {

Loading…
Cancel
Save