@@ -179,7 +179,7 @@ public LogWindow (LogTabWindow.LogTabWindow parent, string fileName, bool isTemp
179179 listBoxFilter . DrawMode = DrawMode . OwnerDrawVariable ;
180180 listBoxFilter . MeasureItem += MeasureItem ;
181181
182- Closing += OnLogWindowClosing ;
182+ FormClosing += OnLogWindowClosing ;
183183 Disposed += OnLogWindowDisposed ;
184184 Load += OnLogWindowLoad ;
185185
@@ -466,6 +466,15 @@ private void SetResources ()
466466 ApplyCheckBoxResources ( ) ;
467467 ApplyToolStripMenuItemResources ( ) ;
468468 ApplyToolTipsResources ( ) ;
469+ ApplyResourceImages ( ) ;
470+ }
471+
472+ private void ApplyResourceImages ( )
473+ {
474+ pnlProFilterLabel . BackgroundImage = Resources . Pro_Filter ;
475+ btnFilterDown . BackgroundImage = Resources . ArrowDown ;
476+ btnFilterUp . BackgroundImage = Resources . ArrowUp ;
477+ btnToggleHighlightPanel . Image = Resources . Arrow_menu_open ;
469478 }
470479
471480 private void ApplyCheckBoxResources ( )
@@ -1693,7 +1702,6 @@ private void OnColumnContextMenuStripOpening (object sender, CancelEventArgs e)
16931702 }
16941703 }
16951704
1696-
16971705 var col = gridView . Columns [ _selectedCol ] ;
16981706 moveLeftToolStripMenuItem . Enabled = col != null && col . DisplayIndex > 0 ;
16991707 moveRightToolStripMenuItem . Enabled = col != null && col . DisplayIndex < gridView . Columns . Count - 1 ;
@@ -1767,7 +1775,7 @@ private void OnMoveToLastColumnToolStripMenuItemClick (object sender, EventArgs
17671775 {
17681776 var gridView = columnContextMenuStrip . SourceControl as BufferedDataGridView ;
17691777 var col = gridView . Columns [ _selectedCol ] ;
1770- col ? . DisplayIndex = gridView. Columns . Count - 1 ;
1778+ _ = col ? . DisplayIndex = gridView. Columns . Count - 1 ;
17711779 }
17721780
17731781 [ SupportedOSPlatform ( "windows" ) ]
@@ -3265,7 +3273,7 @@ private void SetColumnizerInternal (ILogLineColumnizer columnizer)
32653273 CurrentColumnizer = columnizer ;
32663274 _freezeStateMap . Clear ( ) ;
32673275
3268- _logFileReader ? . PreProcessColumnizer = CurrentColumnizer is IPreProcessColumnizer columnizer1
3276+ _ = _logFileReader ? . PreProcessColumnizer = CurrentColumnizer is IPreProcessColumnizer columnizer1
32693277 ? columnizer1
32703278 : null ;
32713279
@@ -4209,7 +4217,7 @@ private void ApplyFilterParams ()
42094217 [ SupportedOSPlatform ( "windows" ) ]
42104218 private void ResetFilterControls ( )
42114219 {
4212- filterComboBox . Text = "" ;
4220+ filterComboBox . Text = string . Empty ;
42134221 filterCaseSensitiveCheckBox . Checked = false ;
42144222 filterRegexCheckBox . Checked = false ;
42154223 //this.filterTailCheckBox.Checked = this.Preferences.filterTail;
@@ -4219,7 +4227,7 @@ private void ResetFilterControls ()
42194227 rangeCheckBox . Checked = false ;
42204228 columnRestrictCheckBox . Checked = false ;
42214229 knobControlFuzzy . Value = 0 ;
4222- filterRangeComboBox . Text = "" ;
4230+ filterRangeComboBox . Text = string . Empty ;
42234231 }
42244232
42254233 [ SupportedOSPlatform ( "windows" ) ]
@@ -4781,17 +4789,9 @@ private bool IsFilterSearchDirty (FilterParams filterParams)
47814789 return true ;
47824790 }
47834791
4784- if ( filterParams . FuzzyValue != knobControlFuzzy . Value )
4785- {
4786- return true ;
4787- }
4788-
4789- if ( filterParams . ColumnRestrict != columnRestrictCheckBox . Checked )
4790- {
4791- return true ;
4792- }
4793-
4794- return filterParams . IsCaseSensitive != filterCaseSensitiveCheckBox . Checked ;
4792+ return filterParams . FuzzyValue != knobControlFuzzy . Value ||
4793+ filterParams . ColumnRestrict != columnRestrictCheckBox . Checked ||
4794+ filterParams . IsCaseSensitive != filterCaseSensitiveCheckBox . Checked ;
47954795 }
47964796
47974797 [ SupportedOSPlatform ( "windows" ) ]
@@ -5311,7 +5311,7 @@ private string CalculateColumnNames (FilterParams filter)
53115311 }
53125312
53135313 // skip first two columns: marker + line number
5314- names . Append ( dataGridView . Columns [ 2 + colIndex ] . HeaderText ) ;
5314+ _ = names . Append ( dataGridView . Columns [ 2 + colIndex ] . HeaderText ) ;
53155315 }
53165316 }
53175317 }
0 commit comments