@@ -120,7 +120,7 @@ private void TimerKillProcess_Elapsed(object sender, ElapsedEventArgs e)
120120 if ( processes . Length > 0 )
121121 {
122122 arg += " /IM SeewoIwbAssistant.exe" +
123- " /IM Sia.Guard" ;
123+ " /IM Sia.Guard.exe " ;
124124 }
125125 }
126126 if ( Settings . Automation . IsAutoKillEasiNote )
@@ -1072,6 +1072,15 @@ private void BtnClear_Click(object sender, RoutedEventArgs e)
10721072 forceEraser = false ;
10731073 BorderClearInDelete . Visibility = Visibility . Collapsed ;
10741074
1075+ if ( currentMode == 0 ) {
1076+ BorderPenColorRed_MouseUp ( BorderPenColorRed , null ) ;
1077+ } else {
1078+ if ( Settings . Canvas . UsingWhiteboard ) {
1079+ BorderPenColorBlack_MouseUp ( BorderPenColorBlack , null ) ;
1080+ } else {
1081+ BorderPenColorWhite_MouseUp ( BorderPenColorWhite , null ) ;
1082+ }
1083+ }
10751084 if ( inkCanvas . Strokes . Count != 0 )
10761085 {
10771086 int whiteboardIndex = CurrentWhiteboardIndex ;
@@ -1159,6 +1168,7 @@ private void BtnSwitch_Click(object sender, RoutedEventArgs e)
11591168 }
11601169 StackPanelPPTButtons . Visibility = Visibility . Visible ;
11611170 }
1171+ Topmost = true ;
11621172 BtnHideInkCanvas_Click ( BtnHideInkCanvas , e ) ;
11631173 }
11641174 else
@@ -1198,6 +1208,7 @@ private void BtnSwitch_Click(object sender, RoutedEventArgs e)
11981208 }
11991209
12001210 StackPanelPPTButtons . Visibility = Visibility . Visible ;
1211+ Topmost = true ;
12011212 break ;
12021213 case 1 : //黑板或白板模式
12031214 currentMode = 1 ;
@@ -1222,6 +1233,7 @@ private void BtnSwitch_Click(object sender, RoutedEventArgs e)
12221233 }
12231234
12241235 StackPanelPPTButtons . Visibility = Visibility . Collapsed ;
1236+ Topmost = false ;
12251237 break ;
12261238 }
12271239 }
@@ -2250,8 +2262,11 @@ private void PptApplication_SlideShowBegin(SlideShowWindow Wn)
22502262 LogHelper . WriteLogToFile ( "PowerPoint Application Slide Show Begin" , LogHelper . LogType . Event ) ;
22512263 Application . Current . Dispatcher . Invoke ( ( ) =>
22522264 {
2253- // 退出画板模式
2254- BtnSwitch_Click ( null , null ) ;
2265+ if ( currentMode == 1 ) {
2266+ // 退出画板模式
2267+ BtnSwitch_Click ( null , null ) ;
2268+ }
2269+
22552270 //调整颜色
22562271 double screenRatio = SystemParameters . PrimaryScreenWidth / SystemParameters . PrimaryScreenHeight ;
22572272 if ( Math . Abs ( screenRatio - 16.0 / 9 ) <= - 0.01 )
@@ -4084,7 +4099,10 @@ private void BtnDrawLine_Click(object sender, EventArgs e)
40844099 lastMouseDownSender = null ;
40854100 if ( isLongPressSelected )
40864101 {
4087- BorderDrawShape . Visibility = Visibility . Collapsed ;
4102+ if ( ToggleSwitchDrawShapeBorderAutoHide . IsOn )
4103+ {
4104+ BorderDrawShape . Visibility = Visibility . Collapsed ;
4105+ }
40884106 var dA = new DoubleAnimation ( 1 , 1 , new Duration ( TimeSpan . FromMilliseconds ( 0 ) ) ) ;
40894107 ImageDrawLine . BeginAnimation ( OpacityProperty , dA ) ;
40904108 }
@@ -4103,7 +4121,10 @@ private void BtnDrawDashedLine_Click(object sender, EventArgs e)
41034121 lastMouseDownSender = null ;
41044122 if ( isLongPressSelected )
41054123 {
4106- BorderDrawShape . Visibility = Visibility . Collapsed ;
4124+ if ( ToggleSwitchDrawShapeBorderAutoHide . IsOn )
4125+ {
4126+ BorderDrawShape . Visibility = Visibility . Collapsed ;
4127+ }
41074128 var dA = new DoubleAnimation ( 1 , 1 , new Duration ( TimeSpan . FromMilliseconds ( 0 ) ) ) ;
41084129 ImageDrawDashedLine . BeginAnimation ( OpacityProperty , dA ) ;
41094130 }
@@ -4122,7 +4143,10 @@ private void BtnDrawDotLine_Click(object sender, EventArgs e)
41224143 lastMouseDownSender = null ;
41234144 if ( isLongPressSelected )
41244145 {
4125- BorderDrawShape . Visibility = Visibility . Collapsed ;
4146+ if ( ToggleSwitchDrawShapeBorderAutoHide . IsOn )
4147+ {
4148+ BorderDrawShape . Visibility = Visibility . Collapsed ;
4149+ }
41264150 var dA = new DoubleAnimation ( 1 , 1 , new Duration ( TimeSpan . FromMilliseconds ( 0 ) ) ) ;
41274151 ImageDrawDotLine . BeginAnimation ( OpacityProperty , dA ) ;
41284152 }
@@ -4141,7 +4165,10 @@ private void BtnDrawArrow_Click(object sender, EventArgs e)
41414165 lastMouseDownSender = null ;
41424166 if ( isLongPressSelected )
41434167 {
4144- BorderDrawShape . Visibility = Visibility . Collapsed ;
4168+ if ( ToggleSwitchDrawShapeBorderAutoHide . IsOn )
4169+ {
4170+ BorderDrawShape . Visibility = Visibility . Collapsed ;
4171+ }
41454172 var dA = new DoubleAnimation ( 1 , 1 , new Duration ( TimeSpan . FromMilliseconds ( 0 ) ) ) ;
41464173 ImageDrawArrow . BeginAnimation ( OpacityProperty , dA ) ;
41474174 }
@@ -4160,7 +4187,10 @@ private void BtnDrawParallelLine_Click(object sender, EventArgs e)
41604187 lastMouseDownSender = null ;
41614188 if ( isLongPressSelected )
41624189 {
4163- BorderDrawShape . Visibility = Visibility . Collapsed ;
4190+ if ( ToggleSwitchDrawShapeBorderAutoHide . IsOn )
4191+ {
4192+ BorderDrawShape . Visibility = Visibility . Collapsed ;
4193+ }
41644194 var dA = new DoubleAnimation ( 1 , 1 , new Duration ( TimeSpan . FromMilliseconds ( 0 ) ) ) ;
41654195 ImageDrawParallelLine . BeginAnimation ( OpacityProperty , dA ) ;
41664196 }
@@ -6978,8 +7008,6 @@ private void ImageBlackboard_MouseUp(object sender, MouseButtonEventArgs e)
69787008 if ( currentMode == 0 )
69797009 {
69807010 //进入黑板
6981- Topmost = false ;
6982-
69837011 if ( BtnPPTSlideShowEnd . Visibility == Visibility . Collapsed )
69847012 {
69857013 pointDesktop = new Point ( ViewboxFloatingBar . Margin . Left , ViewboxFloatingBar . Margin . Top ) ;
@@ -7010,8 +7038,6 @@ private void ImageBlackboard_MouseUp(object sender, MouseButtonEventArgs e)
70107038 else
70117039 {
70127040 //关闭黑板
7013- Topmost = true ;
7014-
70157041 if ( isInMultiTouchMode ) BorderMultiTouchMode_MouseUp ( null , null ) ;
70167042
70177043 if ( BtnPPTSlideShowEnd . Visibility == Visibility . Collapsed )
0 commit comments