private void deserializeWindows() { Windows newWindows = null; if (File.Exists(Constants.CONFIGPATH + "Windows.xml")) { newWindows = (Windows)XMLSerializer.deserialize(windows, Constants.CONFIGPATH + "Windows.xml"); } if (newWindows != null) { windows = newWindows; } else { windows.listWindows.Add("Main"); } }
private void serializeWindows() { XMLSerializer.serialize(windows, Constants.CONFIGPATH + "Windows.xml"); }