Exemple #1
0
 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();
     }
 }
Exemple #2
0
 public manager()
 {
     this.settingObject = new sobj();
 }