Skip to content

Commit 3d24828

Browse files
committed
Minor cleanup...
1 parent 7efb67e commit 3d24828

File tree

1 file changed

+11
-24
lines changed

1 file changed

+11
-24
lines changed

FlashDevelop/MainForm.cs

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2680,10 +2680,8 @@ public void PrintPreview(Object sender, System.EventArgs e)
26802680
/// </summary>
26812681
public void GoTo(Object sender, System.EventArgs e)
26822682
{
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();
26872685
}
26882686

26892687
/// <summary>
@@ -2711,10 +2709,8 @@ public void FindPrevious(Object sender, System.EventArgs e)
27112709
/// </summary>
27122710
public void FindAndReplace(Object sender, System.EventArgs e)
27132711
{
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();
27182714
}
27192715

27202716
/// <summary>
@@ -2728,21 +2724,17 @@ public void FindAndReplaceFrom(Object sender, System.EventArgs e)
27282724
{
27292725
OpenEditableDocument(file);
27302726
});
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();
27352729
}
27362730

27372731
/// <summary>
27382732
/// Opens a find and replace in files dialog
27392733
/// </summary>
27402734
public void FindAndReplaceInFiles(Object sender, System.EventArgs e)
27412735
{
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();
27462738
}
27472739

27482740
/// <summary>
@@ -2752,10 +2744,8 @@ public void FindAndReplaceInFilesFrom(Object sender, System.EventArgs e)
27522744
{
27532745
ToolStripItem button = (ToolStripItem)sender;
27542746
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();
27592749
this.frInFilesDialog.SetFindPath(path);
27602750
}
27612751

@@ -3398,11 +3388,8 @@ public void ChangeSyntax(Object sender, System.EventArgs e)
33983388
ScintillaControl sci = Globals.SciControl;
33993389
ToolStripItem button = (ToolStripItem)sender;
34003390
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
34043392
ScintillaManager.ChangeSyntax(language, sci);
3405-
34063393
string extension = sci.GetFileExtension();
34073394
if (!string.IsNullOrEmpty(extension))
34083395
{

0 commit comments

Comments
 (0)