Esempio n. 1
0
 public CurrentUsers()
 {
     this._users = new MediaUsers();
     try
     {
         load();
     }
     catch
     {
         save();
     }
 }
Esempio n. 2
0
 public CurrentUsers(CurrentUsers o)
 {
     this._users = o._users;
     try
     {
         load();
     }
     catch
     {
         save();
     }
 }
Esempio n. 3
0
 public void load()
 {
     using (FileStream fs = new FileStream("Users.xml", FileMode.OpenOrCreate))
     {
         XmlSerializer serializer = new XmlSerializer(typeof(MediaUsers));
         this._users = serializer.Deserialize(fs) as MediaUsers;
     }
 }