Browse Source

The state of ShowErrors, ShowWarnings, ShowMessages in the Errors window is now saved on closing SharpDevelop.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3906 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 17 years ago
parent
commit
a40cdaf6f2
  1. 20
      src/Main/Base/Project/Src/Gui/Pads/ErrorList/ErrorListPad.cs

20
src/Main/Base/Project/Src/Gui/Pads/ErrorList/ErrorListPad.cs

@ -24,39 +24,36 @@ namespace ICSharpCode.SharpDevelop.Gui @@ -24,39 +24,36 @@ namespace ICSharpCode.SharpDevelop.Gui
ToolStrip toolStrip;
Panel contentPanel = new Panel();
TaskView taskView = new TaskView();
bool showWarnings = true;
bool showErrors = true;
bool showMessages = true;
Properties properties;
public bool ShowErrors {
get {
return showErrors;
return properties.Get<bool>("ShowErrors", true);
}
set {
showErrors = value;
properties.Set<bool>("ShowErrors", value);
InternalShowResults();
}
}
public bool ShowMessages {
get {
return showMessages;
return properties.Get<bool>("ShowMessages", true);
}
set {
showMessages = value;
properties.Set<bool>("ShowMessages", value);
InternalShowResults();
}
}
public bool ShowWarnings {
get {
return showWarnings;
return properties.Get<bool>("ShowWarnings", true);
}
set {
showWarnings = value;
properties.Set<bool>("ShowWarnings", value);
InternalShowResults();
}
}
@ -79,6 +76,7 @@ namespace ICSharpCode.SharpDevelop.Gui @@ -79,6 +76,7 @@ namespace ICSharpCode.SharpDevelop.Gui
public ErrorListPad()
{
instance = this;
properties = PropertyService.Get("ErrorListPad", new Properties());
RedrawContent();

Loading…
Cancel
Save