示例#1
0
 public void WriteXML(XmlWriter writer)
 {
     writer.WriteElementString("Culture", uiCultureName);
     writer.WriteElementString("ExplorerVisible", explorerVisible ? "true" : "false");
     writer.WriteElementString("ExplorerSplitterDistance", explorerSplitterDistance.ToString());
     writer.WriteElementString("WindowState", windowState.ToString());
     writer.WriteElementString("WindowRectangle", XmlHelper.WriteRectangleF(windowRectangle));
     writer.WriteElementString("AllowMultipleInstances", allowMultipleInstances ? "true" : "false");
     writer.WriteElementString("InstancesOwnPreferences", instancesOwnPreferences ? "true" : "false");
     writer.WriteElementString("PreferencesPage", preferencePage.ToString());
 }
示例#2
0
        public void WriteXML(XmlWriter writer)
        {
            writer.WriteElementString("Culture", uiCultureName);
            writer.WriteElementString("ExplorerVisible", explorerVisible ? "true" : "false");
            writer.WriteElementString("ExplorerSplitterDistance", explorerSplitterDistance.ToString());
            writer.WriteElementString("WindowState", windowState.ToString());
            writer.WriteElementString("WindowRectangle", XmlHelper.WriteRectangleF(windowRectangle));

            if (workspace != null && workspace.Screens != null && workspace.Screens.Count > 0)
            {
                writer.WriteStartElement("Workspace");
                workspace.WriteXML(writer);
                writer.WriteEndElement();
            }

            writer.WriteElementString("AllowMultipleInstances", allowMultipleInstances ? "true" : "false");
            writer.WriteElementString("InstancesOwnPreferences", instancesOwnPreferences ? "true" : "false");
            writer.WriteElementString("PreferencesPage", preferencePage.ToString());
        }