Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 3afbc92

Browse files
committed
rename search window to SearchWindow
1 parent b842f7e commit 3afbc92

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Spcode.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@
179179
<Compile Include="UI\Windows\GoToLineWindow.xaml.cs">
180180
<DependentUpon>GoToLineWindow.xaml</DependentUpon>
181181
</Compile>
182-
<Compile Include="UI\Windows\FindReplaceWindow.xaml.cs">
183-
<DependentUpon>FindReplaceWindow.xaml</DependentUpon>
182+
<Compile Include="UI\Windows\SearchWindow.xaml.cs">
183+
<DependentUpon>SearchWindow.xaml</DependentUpon>
184184
</Compile>
185185
<Compile Include="UI\Windows\NewFileWindow.xaml.cs">
186186
<DependentUpon>NewFileWindow.xaml</DependentUpon>
@@ -268,7 +268,7 @@
268268
<Generator>MSBuild:Compile</Generator>
269269
<SubType>Designer</SubType>
270270
</Page>
271-
<Page Include="UI\Windows\FindReplaceWindow.xaml">
271+
<Page Include="UI\Windows\SearchWindow.xaml">
272272
<SubType>Designer</SubType>
273273
<Generator>MSBuild:Compile</Generator>
274274
</Page>

UI/MainWindow/MainWindowCommands.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ private void Command_FindReplace()
296296

297297
foreach (Window win in Application.Current.Windows)
298298
{
299-
if (win is FindReplaceWindow findWin)
299+
if (win is SearchWindow findWin)
300300
{
301301
findWin.Activate();
302302
findWin.FindBox.Text = selection;
@@ -305,7 +305,7 @@ private void Command_FindReplace()
305305
return;
306306
}
307307
}
308-
var findWindow = new FindReplaceWindow(selection) { Owner = this };
308+
var findWindow = new SearchWindow(selection) { Owner = this };
309309
findWindow.Show();
310310
findWindow.FindBox.Focus();
311311
}

UI/Windows/FindReplaceWindow.xaml renamed to UI/Windows/SearchWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<controls:MetroWindow xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4-
x:Class="SPCode.UI.Windows.FindReplaceWindow"
4+
x:Class="SPCode.UI.Windows.SearchWindow"
55
WindowStartupLocation="Manual"
66
GlowBrush="{DynamicResource AccentColorBrush}"
77
Background="{DynamicResource WhiteBrush}"

UI/Windows/FindReplaceWindow.xaml.cs renamed to UI/Windows/SearchWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
namespace SPCode.UI.Windows
1616
{
17-
public partial class FindReplaceWindow
17+
public partial class SearchWindow
1818
{
1919
#region Variables
2020
private EditorElement _editor;
@@ -47,7 +47,7 @@ private enum DocumentType
4747
#endregion
4848

4949
#region Constructors
50-
public FindReplaceWindow(string searchTerm = "")
50+
public SearchWindow(string searchTerm = "")
5151
{
5252
InitializeComponent();
5353
if (Program.OptionsObject.Program_AccentColor != "Red" || Program.OptionsObject.Program_Theme != "BaseDark")

0 commit comments

Comments
 (0)