@@ -2680,10 +2680,8 @@ public void PrintPreview(Object sender, System.EventArgs e)
2680
2680
/// </summary>
2681
2681
public void GoTo ( Object sender , System . EventArgs e )
2682
2682
{
2683
- if ( ! this . gotoDialog . Visible )
2684
- this . gotoDialog . Show ( ) ;
2685
- else
2686
- this . gotoDialog . Activate ( ) ;
2683
+ if ( ! this . gotoDialog . Visible ) this . gotoDialog . Show ( ) ;
2684
+ else this . gotoDialog . Activate ( ) ;
2687
2685
}
2688
2686
2689
2687
/// <summary>
@@ -2711,10 +2709,8 @@ public void FindPrevious(Object sender, System.EventArgs e)
2711
2709
/// </summary>
2712
2710
public void FindAndReplace ( Object sender , System . EventArgs e )
2713
2711
{
2714
- if ( ! this . frInDocDialog . Visible )
2715
- this . frInDocDialog . Show ( ) ;
2716
- else
2717
- this . frInDocDialog . Activate ( ) ;
2712
+ if ( ! this . frInDocDialog . Visible ) this . frInDocDialog . Show ( ) ;
2713
+ else this . frInDocDialog . Activate ( ) ;
2718
2714
}
2719
2715
2720
2716
/// <summary>
@@ -2728,21 +2724,17 @@ public void FindAndReplaceFrom(Object sender, System.EventArgs e)
2728
2724
{
2729
2725
OpenEditableDocument ( file ) ;
2730
2726
} ) ;
2731
- if ( ! this . frInDocDialog . Visible )
2732
- this . frInDocDialog . Show ( ) ;
2733
- else
2734
- this . frInDocDialog . Activate ( ) ;
2727
+ if ( ! this . frInDocDialog . Visible ) this . frInDocDialog . Show ( ) ;
2728
+ else this . frInDocDialog . Activate ( ) ;
2735
2729
}
2736
2730
2737
2731
/// <summary>
2738
2732
/// Opens a find and replace in files dialog
2739
2733
/// </summary>
2740
2734
public void FindAndReplaceInFiles ( Object sender , System . EventArgs e )
2741
2735
{
2742
- if ( ! this . frInFilesDialog . Visible )
2743
- this . frInFilesDialog . Show ( ) ;
2744
- else
2745
- this . frInFilesDialog . Activate ( ) ;
2736
+ if ( ! this . frInFilesDialog . Visible ) this . frInFilesDialog . Show ( ) ;
2737
+ else this . frInFilesDialog . Activate ( ) ;
2746
2738
}
2747
2739
2748
2740
/// <summary>
@@ -2752,10 +2744,8 @@ public void FindAndReplaceInFilesFrom(Object sender, System.EventArgs e)
2752
2744
{
2753
2745
ToolStripItem button = ( ToolStripItem ) sender ;
2754
2746
String path = ( ( ItemData ) button . Tag ) . Tag ;
2755
- if ( ! this . frInFilesDialog . Visible )
2756
- this . frInFilesDialog . Show ( ) ; // Show first..
2757
- else
2758
- this . frInFilesDialog . Activate ( ) ;
2747
+ if ( ! this . frInFilesDialog . Visible ) this . frInFilesDialog . Show ( ) ; // Show first..
2748
+ else this . frInFilesDialog . Activate ( ) ;
2759
2749
this . frInFilesDialog . SetFindPath ( path ) ;
2760
2750
}
2761
2751
@@ -3398,11 +3388,8 @@ public void ChangeSyntax(Object sender, System.EventArgs e)
3398
3388
ScintillaControl sci = Globals . SciControl ;
3399
3389
ToolStripItem button = ( ToolStripItem ) sender ;
3400
3390
string language = ( ( ItemData ) button . Tag ) . Tag ;
3401
- if ( sci . ConfigurationLanguage . Equals ( language ) )
3402
- return ; // already using this syntax
3403
-
3391
+ if ( sci . ConfigurationLanguage . Equals ( language ) ) return ; // already using this syntax
3404
3392
ScintillaManager . ChangeSyntax ( language , sci ) ;
3405
-
3406
3393
string extension = sci . GetFileExtension ( ) ;
3407
3394
if ( ! string . IsNullOrEmpty ( extension ) )
3408
3395
{
0 commit comments