1- using System ;
21using System . Runtime . InteropServices ;
32using System . Runtime . Versioning ;
4- using System . Windows . Forms ;
53
64using ColumnizerLib ;
75
6+ using static Vanara . PInvoke . User32 ;
7+
88[ assembly: SupportedOSPlatform ( "windows" ) ]
99namespace FlashIconHighlighter ;
1010
@@ -18,29 +18,33 @@ internal class FlashIconPlugin : IKeywordAction
1818
1919 #region IKeywordAction Member
2020
21- public void Execute ( string keyword , string param , ILogExpertCallback callback , ILogLineMemoryColumnizer columnizer )
21+ public void Execute ( string keyword , string param , ILogExpertCallbackMemory callback , ILogLineMemoryColumnizer columnizer )
2222 {
2323 var openForms = Application . OpenForms ;
2424 foreach ( Form form in openForms )
2525 {
2626 if ( form . TopLevel && form . Name . Equals ( "LogTabWindow" , StringComparison . OrdinalIgnoreCase ) && form . Text . Contains ( callback . GetFileName ( ) , StringComparison . Ordinal ) )
2727 {
28- form . BeginInvoke ( FlashWindow , [ form ] ) ;
28+ _ = form . BeginInvoke ( FlashWindow , [ form ] ) ;
2929 }
3030 }
3131 }
3232
33+ /// <summary>
34+ /// Flash Window http://blogs.x2line.com/al/archive/2008/04/19/3392.aspx
35+ /// </summary>
36+ /// <param name="form"></param>
3337 private void FlashWindow ( Form form )
3438 {
3539 FLASHWINFO fw = new ( )
3640 {
37- cbSize = Convert . ToUInt32 ( Marshal . SizeOf ( typeof ( FLASHWINFO ) ) ) ,
41+ cbSize = Convert . ToUInt32 ( Marshal . SizeOf < FLASHWINFO > ( ) ) ,
3842 hwnd = form . Handle ,
39- dwFlags = 14 ,
43+ dwFlags = FLASHW . FLASHW_TRAY | FLASHW . FLASHW_CAPTION | FLASHW . FLASHW_TIMER ,
4044 uCount = 0
4145 } ;
4246
43- Win32Stuff . FlashWindowEx ( ref fw ) ;
47+ _ = FlashWindowEx ( fw ) ;
4448 }
4549
4650 public string GetDescription ( )
0 commit comments