public void LoadConfig() { //Open the file written above and read values from it. BinaryFormatter bformatter = new BinaryFormatter(); System.IO.Stream stream = System.IO.File.Open("hcgwab.osl", System.IO.FileMode.Open); Config = (HCConfigs)bformatter.Deserialize(stream); stream.Close(); }
public HCConfig() { config = new HCConfigs(); }