diff --git a/src/Main/Base/Project/Src/Gui/Components/StringListEditorXaml.xaml b/src/Main/Base/Project/Src/Gui/Components/StringListEditorXaml.xaml index a6dcea9ee1..eacde50987 100644 --- a/src/Main/Base/Project/Src/Gui/Components/StringListEditorXaml.xaml +++ b/src/Main/Base/Project/Src/Gui/Components/StringListEditorXaml.xaml @@ -7,80 +7,67 @@ xmlns:core="http://icsharpcode.net/sharpdevelop/core"> - - - - + + + + + - - + + - - - + + + - + + - + + Style="{x:Static core:GlobalStyles.ButtonStyle}"> + + - - - - - - + + + + + + + + + \ No newline at end of file diff --git a/src/Main/Base/Project/Src/Gui/Components/StringListEditorXaml.xaml.cs b/src/Main/Base/Project/Src/Gui/Components/StringListEditorXaml.xaml.cs index bf29b88b4c..d557ae23ce 100644 --- a/src/Main/Base/Project/Src/Gui/Components/StringListEditorXaml.xaml.cs +++ b/src/Main/Base/Project/Src/Gui/Components/StringListEditorXaml.xaml.cs @@ -8,16 +8,10 @@ */ using System; using System.Collections.Generic; -using System.Text; using System.Windows; using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; using ICSharpCode.Core.Presentation; -using Microsoft.Win32; namespace ICSharpCode.SharpDevelop.Gui { @@ -27,28 +21,22 @@ namespace ICSharpCode.SharpDevelop.Gui public partial class StringListEditorXaml : UserControl { bool browseForDirectory; - public event EventHandler ListChanged; - public string TitleText { - get { return this.title.Content.ToString(); } - set { this.title.Content = value;} - } - - - public string ListCaption + public StringListEditorXaml() { - get {return this.listlabel.Content.ToString();} - set {this.listlabel.Content = value;} - } - - - public string AddButtonText { - get {return addButton.Content.ToString();} - set {addButton.Content = value;} + InitializeComponent(); + moveUpButton.Content = new Image { Height = 16, Source = PresentationResourceService.GetBitmapSource("Icons.16x16.ArrowUp") }; + moveDownButton.Content = new Image { Height = 16, Source = PresentationResourceService.GetBitmapSource("Icons.16x16.ArrowDown")}; + deleteButton.Content = new Image { Height = 16, Source = PresentationResourceService.GetBitmapSource("Icons.16x16.DeleteIcon")}; + DataContext = this; } + public string TitleText {get;set;} + public string ListCaption {get;set;} + + public bool BrowseForDirectory { get { return browseForDirectory; @@ -191,12 +179,6 @@ namespace ICSharpCode.SharpDevelop.Gui #endregion - public StringListEditorXaml() - { - InitializeComponent(); - moveUpButton.Content = new Image { Height = 16, Source = PresentationResourceService.GetBitmapSource("Icons.16x16.ArrowUp") }; - moveDownButton.Content = new Image { Height = 16, Source = PresentationResourceService.GetBitmapSource("Icons.16x16.ArrowDown")}; - deleteButton.Content = new Image { Height = 16, Source = PresentationResourceService.GetBitmapSource("Icons.16x16.DeleteIcon")}; - } + } } \ No newline at end of file diff --git a/src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ProjectOptions/ReferencePaths.xaml.cs b/src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ProjectOptions/ReferencePaths.xaml.cs index c3ba2ba464..458ff49e71 100644 --- a/src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ProjectOptions/ReferencePaths.xaml.cs +++ b/src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ProjectOptions/ReferencePaths.xaml.cs @@ -23,7 +23,6 @@ namespace ICSharpCode.SharpDevelop.Gui.OptionPanels editor.BrowseForDirectory = true; editor.TitleText = StringParser.Parse("${res:Global.Folder}:"); - editor.AddButtonText = StringParser.Parse("${res:Dialog.ProjectOptions.ReferencePaths.AddPath}"); editor.ListCaption = StringParser.Parse("${res:Dialog.ProjectOptions.ReferencePaths}:"); editor.ListChanged += delegate { IsDirty = true; }; }