|
|
|
@ -16,7 +16,7 @@ using ICSharpCode.SharpDevelop.Project;
@@ -16,7 +16,7 @@ using ICSharpCode.SharpDevelop.Project;
|
|
|
|
|
|
|
|
|
|
namespace ICSharpCode.SettingsEditor |
|
|
|
|
{ |
|
|
|
|
public class SettingsViewContent : AbstractViewContent, IHasPropertyContainer |
|
|
|
|
public class SettingsViewContent : AbstractViewContentHandlingLoadErrors, IHasPropertyContainer |
|
|
|
|
{ |
|
|
|
|
SettingsView view = new SettingsView(); |
|
|
|
|
PropertyContainer propertyContainer = new PropertyContainer(); |
|
|
|
@ -36,6 +36,7 @@ namespace ICSharpCode.SettingsEditor
@@ -36,6 +36,7 @@ namespace ICSharpCode.SettingsEditor
|
|
|
|
|
if (appConfigFile != null) |
|
|
|
|
appConfigFile.MakeDirty(); |
|
|
|
|
}; |
|
|
|
|
this.UserContent = view; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void TryOpenAppConfig(bool createIfNotExists) |
|
|
|
@ -57,13 +58,7 @@ namespace ICSharpCode.SettingsEditor
@@ -57,13 +58,7 @@ namespace ICSharpCode.SettingsEditor
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override object Control { |
|
|
|
|
get { |
|
|
|
|
return view; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override void Load(OpenedFile file, Stream stream) |
|
|
|
|
protected override void LoadInternal(OpenedFile file, Stream stream) |
|
|
|
|
{ |
|
|
|
|
if (file == PrimaryFile) { |
|
|
|
|
try { |
|
|
|
@ -89,7 +84,7 @@ namespace ICSharpCode.SettingsEditor
@@ -89,7 +84,7 @@ namespace ICSharpCode.SettingsEditor
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override void Save(OpenedFile file, Stream stream) |
|
|
|
|
protected override void SaveInternal(OpenedFile file, Stream stream) |
|
|
|
|
{ |
|
|
|
|
if (file == PrimaryFile) { |
|
|
|
|
using (XmlTextWriter writer = new XmlTextWriter(stream, Encoding.UTF8)) { |
|
|
|
|