static public void Load(string fileName) { if (System.IO.File.Exists(fileName)) { try { using (System.IO.FileStream fs = new System.IO.FileStream(fileName, System.IO.FileMode.Open, System.IO.FileAccess.Read)) { _Config = XmlSerialization <PanGuSettings> .Deserialize(fs); } } catch { _Config = new PanGuSettings(); } } else { _Config = new PanGuSettings(); } }
private void Load(string fileName) { PanGuSettings.Load(fileName); }