public void Read() { BinaryFormatter binF = new BinaryFormatter(); FileStream fs = new FileStream("vk.cfg", FileMode.OpenOrCreate); try { this.settingObject = (sobj)binF.Deserialize(fs); } catch { this.settingObject = new sobj(); } finally { fs.Close(); fs.Dispose(); } }
public manager() { this.settingObject = new sobj(); }