[Monodevelop-patches-list] r1439 - trunk/MonoDevelop/src/Main/Base/Gui/Workbench
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sun Apr 11 17:12:34 EDT 2004
Author: tberman
Date: 2004-04-11 17:12:34 -0400 (Sun, 11 Apr 2004)
New Revision: 1439
Modified:
trunk/MonoDevelop/src/Main/Base/Gui/Workbench/WorkbenchMemento.cs
Log:
third times a charm?
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Workbench/WorkbenchMemento.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Workbench/WorkbenchMemento.cs 2004-04-11 21:09:03 UTC (rev 1438)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Workbench/WorkbenchMemento.cs 2004-04-11 21:12:34 UTC (rev 1439)
@@ -70,25 +70,28 @@
fullscreen = false;
}
- WorkbenchMemento(XmlElement element)
+ WorkbenchMemento(XmlElement element) : base ()
{
- if (element.Attributes["bounds"] != null && element.Attributes["bounds"].InnerText != String.Empty) {
+ try {
string[] boundstr = element.Attributes["bounds"].InnerText.Split(new char [] { ',' });
bounds = new Rectangle(Int32.Parse(boundstr[0]), Int32.Parse(boundstr[1]),
Int32.Parse(boundstr[2]), Int32.Parse(boundstr[3]));
+ } catch {
}
- if (element.Attributes["formwindowstate"] != null && element.Attributes["formwindowstate"].InnerText != String.Empty) {
+ try {
windowstate = (Gdk.WindowState)Enum.Parse(typeof(Gdk.WindowState), element.Attributes["formwindowstate"].InnerText);
+ } catch {
}
/*if (element.Attributes["defaultformwindowstate"] != null) {
defaultwindowstate = (FormWindowState)Enum.Parse(typeof(FormWindowState), element.Attributes["defaultformwindowstate"].InnerText);
}*/
- if (element.Attributes["fullscreen"] != null && element.Attributes["fullscreen"].InnerText != String.Empty) {
+ try {
fullscreen = Boolean.Parse(element.Attributes["fullscreen"].InnerText);
+ } catch {
}
}
More information about the Monodevelop-patches-list
mailing list