private static void SaveDataToFile(LBConfigDataSet ObjectToSerialize) { XmlSerializer xmlSerializer = new XmlSerializer(ObjectToSerialize.GetType()); using (StringWriter textWriter = new StringWriter()) { xmlSerializer.Serialize(textWriter, ObjectToSerialize); File.WriteAllText(EnviromentManager.LBConfigPath, textWriter.ToString()); } }
public static void Reset() { Config = new LBConfigDataSet(); }
public static void Load() { Config = GetDataFromFile(); }