Inheritance: IControlSave
Example #1
0
 private void saveSettingsToFile(string path)
 {
     using (StreamWriter sw = new StreamWriter(path, false, Encoding.UTF8))
     {
         sw.WriteLine("<?xml version='1.0'?>");
         sw.WriteLine("<settings version='1.0'>");
         XmlSave xs = new XmlSave(sw);
         SaveControls(xs);
         sw.WriteLine("</settings>");
     }
 }
Example #2
0
 private void SaveSettingsToFile(string name)
 {
     try
     {
         StreamWriter sw = new StreamWriter(name);
         sw.WriteLine("<?xml version='1.0'?>");
         sw.WriteLine("<settings version='1.0'>");
         XmlSave xs = new XmlSave(sw);
         ExtractSettings(xs);
         sw.WriteLine("</settings>");
         sw.Close();
     }
     catch (System.Exception x)
     {
         MessageBox.Show("Could not save " + name + "\n" + x.Message);
     }
 }
Example #3
0
 private void saveSettingsToFile(string path)
 {
     using (StreamWriter sw = new StreamWriter(path, false, Encoding.UTF8))
     {
         sw.WriteLine("<?xml version='1.0'?>");
         sw.WriteLine("<settings version='1.0'>");
         XmlSave xs = new XmlSave(sw);
         SaveControls(xs);
         sw.WriteLine("</settings>");
     }
 }