Gravity36.Gravity Load(TextReader reader) { try { Gravity36.Gravity g = new Gravity36.Gravity(); g.Load(reader); return(g); } catch (Exception) { } return(null); }
/// <summary> /// Loads from file /// </summary> /// <param name="filename">File name</param> public void LoadFromFile(string filename) { (this as IUrlConsumer).Url = ""; try { using (TextReader reader = new StreamReader(filename)) { gravity.Load(reader); } } catch (Exception exception) { exception.ShowError(10); } }