Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 1a49794

Browse files
rename StringListEditorXaml to StringListEditor
1 parent 048134b commit 1a49794

File tree

10 files changed

+29
-30
lines changed

10 files changed

+29
-30
lines changed

src/AddIns/Analysis/CodeAnalysis/Src/AnalysisProjectOptionsPanel.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ private string[] GetRuleAssemblyList(bool replacePath)
276276
private void ChangeRuleAssembliesButtonClick( object sender, RoutedEventArgs e)
277277
{
278278
var stringListDialog = new StringListEditorDialog();
279-
stringListDialog.BrowseForDirectory = true;
279+
stringListDialog.ShowBrowse = true;
280280
stringListDialog.TitleText = StringParser.Parse("${res:ICSharpCode.CodeAnalysis.ProjectOptions.ChooseRuleAssemblyDirectory}");
281281
stringListDialog.LoadList(GetRuleAssemblyList(false));
282282
stringListDialog.ShowDialog();

src/AddIns/BackendBindings/CppBinding/CppBinding/Project/LinkerOptions.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public static void PopulateStringListEditor(string title, string listCaption,Tex
165165
var stringListDialog = new StringListEditorDialog();
166166
stringListDialog.TitleText = title;
167167
stringListDialog.ListCaption = listCaption;
168-
stringListDialog.BrowseForDirectory = browseForDirectoty;
168+
stringListDialog.ShowBrowse = browseForDirectoty;
169169
string[] strings = textBox.Text.Split(';');
170170
stringListDialog.LoadList (strings);
171171
stringListDialog.ShowDialog();

src/AddIns/Debugger/Debugger.AddIn/Options/DebuggingSymbolsPanel.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
xmlns:gui="clr-namespace:ICSharpCode.SharpDevelop.Gui;assembly=ICSharpCode.SharpDevelop">
66

77
<Grid>
8-
<gui:StringListEditorXaml x:Name="editor" BrowseForDirectory="True"></gui:StringListEditorXaml>
8+
<gui:StringListEditor x:Name="editor" ShowBrowse="True" />
99
</Grid>
1010
</optionpanels:OptionPanel>

src/Main/Base/Project/ICSharpCode.SharpDevelop.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@
279279
<Compile Include="Src\Gui\Components\StringListEditorDialog.xaml.cs">
280280
<DependentUpon>StringListEditorDialog.xaml</DependentUpon>
281281
</Compile>
282-
<Compile Include="Src\Gui\Components\StringListEditorXaml.xaml.cs">
283-
<DependentUpon>StringListEditorXaml.xaml</DependentUpon>
282+
<Compile Include="Src\Gui\Components\StringListEditor.xaml.cs">
283+
<DependentUpon>StringListEditor.xaml</DependentUpon>
284284
<SubType>Code</SubType>
285285
</Compile>
286286
<Compile Include="Src\Gui\CustomFocusManager.cs" />
@@ -896,7 +896,7 @@
896896
<Page Include="Src\Editor\Dialogs\RenameSymbolDialog.xaml" />
897897
<Page Include="Src\Gui\Components\FontSelector.xaml" />
898898
<Page Include="Src\Gui\Components\StringListEditorDialog.xaml" />
899-
<Page Include="Src\Gui\Components\StringListEditorXaml.xaml" />
899+
<Page Include="Src\Gui\Components\StringListEditor.xaml" />
900900
<Page Include="Src\Gui\Dialogs\OptionPanels\ExternalToolPanel.xaml" />
901901
<Page Include="Src\Gui\Dialogs\OptionPanels\IDEOptions\CodeGenerationPanel.xaml" />
902902
<Page Include="Src\Gui\Dialogs\OptionPanels\IDEOptions\EditStandardHeaderPanel.xaml" />

src/Main/Base/Project/Src/Gui/Components/StringListEditorXaml.xaml renamed to src/Main/Base/Project/Src/Gui/Components/StringListEditor.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<UserControl
3-
x:Class="ICSharpCode.SharpDevelop.Gui.StringListEditorXaml"
3+
x:Class="ICSharpCode.SharpDevelop.Gui.StringListEditor"
44
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
55
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
66
xmlns:widgets="http://icsharpcode.net/sharpdevelop/widgets"
@@ -37,7 +37,7 @@
3737
<Button x:Name="addButton"
3838
IsEnabled="False"
3939
Click="AddButton_Click"
40-
Content="{core:Localize Dialog.ProjectOptions.ReferencePaths.AddPath}"
40+
Content="{Binding AddButtonText}"
4141
Style="{x:Static core:GlobalStyles.ButtonStyle}">
4242
</Button>
4343

src/Main/Base/Project/Src/Gui/Components/StringListEditorXaml.xaml.cs renamed to src/Main/Base/Project/Src/Gui/Components/StringListEditor.xaml.cs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
namespace ICSharpCode.SharpDevelop.Gui
2727
{
2828
/// <summary>
29-
/// Interaction logic for StringListEditorXaml.xaml
29+
/// Interaction logic for StringListEditor.xaml
3030
/// </summary>
31-
public partial class StringListEditorXaml : UserControl
31+
public partial class StringListEditor : UserControl
3232
{
33-
bool browseForDirectory;
33+
bool showBrowse;
3434
public event EventHandler ListChanged;
3535

36-
public StringListEditorXaml()
36+
public StringListEditor()
3737
{
3838
InitializeComponent();
3939
moveUpButton.Content = new Image { Height = 16, Source = PresentationResourceService.GetBitmapSource("Icons.16x16.ArrowUp") };
@@ -44,16 +44,18 @@ public StringListEditorXaml()
4444

4545
public string TitleText {get;set;}
4646

47+
public string AddButtonText { get; set; }
48+
4749
public string ListCaption {get;set;}
4850

4951

50-
public bool BrowseForDirectory {
52+
public bool ShowBrowse {
5153
get {
52-
return browseForDirectory;
54+
return showBrowse;
5355
}
5456
set {
55-
browseForDirectory = value;
56-
if (browseForDirectory) {
57+
showBrowse = value;
58+
if (showBrowse) {
5759
browseButton.Visibility = Visibility.Visible;
5860
} else {
5961
browseButton.Visibility = Visibility.Hidden;

src/Main/Base/Project/Src/Gui/Components/StringListEditorDialog.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<ColumnDefinition Width="70"></ColumnDefinition>
2323
</Grid.ColumnDefinitions>
2424

25-
<local:StringListEditorXaml x:Name="stringListEditor" Grid.ColumnSpan="3" VerticalAlignment="Stretch"></local:StringListEditorXaml>
25+
<local:StringListEditor x:Name="stringListEditor" Grid.ColumnSpan="3" VerticalAlignment="Stretch" />
2626

2727
<Button Margin="0,3,5,3" Grid.Row="1" Grid.Column="1" IsDefault="True" Click="Button_Click" Content="{core:Localize Global.OKButtonText}"></Button>
2828
<Button Margin="0,3,5,3" Grid.Row="1" Grid.Column="2" IsCancel="True" Content="{core:Localize Global.CancelButtonText}"></Button>

src/Main/Base/Project/Src/Gui/Components/StringListEditorDialog.xaml.cs

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ public StringListEditorDialog()
3939
}
4040

4141

42-
public bool BrowseForDirectory {
43-
get {return stringListEditor.BrowseForDirectory;}
44-
set {stringListEditor.BrowseForDirectory = value;}
42+
public bool ShowBrowse {
43+
get {return stringListEditor.ShowBrowse;}
44+
set {stringListEditor.ShowBrowse = value;}
4545
}
4646

4747
public string ListCaption {
@@ -54,6 +54,11 @@ public string TitleText {
5454
set {stringListEditor.TitleText = value;}
5555
}
5656

57+
public string AddButtonText {
58+
get {return stringListEditor.AddButtonText;}
59+
set {stringListEditor.AddButtonText = value;}
60+
}
61+
5762
public string[] GetList() {
5863
return stringListEditor.GetList();
5964
}
@@ -66,13 +71,5 @@ void Button_Click(object sender, RoutedEventArgs e)
6671
{
6772
DialogResult = true;
6873
}
69-
70-
71-
public string AddButtonText
72-
{
73-
get {return stringListEditor.Content.ToString();}
74-
set {stringListEditor.addButton.Content = value;}
75-
}
76-
7774
}
7875
}

src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ProjectOptions/ReferencePaths.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<optionpanels:StorageLocationPicker Margin="5,40,0,0"
2222
x:Name="location" Location="{Binding ReferencePath.Location}" />
2323

24-
<gui:StringListEditorXaml x:Name="editor" Grid.Column="1" Grid.RowSpan="2"></gui:StringListEditorXaml>
24+
<gui:StringListEditor x:Name="editor" Grid.Column="1" Grid.RowSpan="2"></gui:StringListEditor>
2525

2626
</Grid>
2727
</ScrollViewer>

src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ProjectOptions/ReferencePaths.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public ReferencePaths()
3131
{
3232
InitializeComponent();
3333

34-
editor.BrowseForDirectory = true;
34+
editor.ShowBrowse = true;
3535
editor.TitleText = StringParser.Parse("${res:Global.Folder}:");
3636
editor.ListCaption = StringParser.Parse("${res:Dialog.ProjectOptions.ReferencePaths}:");
3737
editor.ListChanged += delegate { IsDirty = true; };

0 commit comments

Comments
 (0)