Esempio n. 1
0
 static public void Load(string fileName)
 {
     _Config = new PanGuSettings();
     //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();
     //}
 }
Esempio n. 2
0
 private void Load(string fileName)
 {
     PanGuSettings.Load(fileName);
 }