コード例 #1
0
 public void load() // Load users' data from a file
 {
     try
     {
         this.Users = (Hashtable)SerialTools.Deserialize(path);
     }
     catch (IOException e)
     {
         Console.WriteLine(e.ToString());
     }
 }
コード例 #2
0
 public TextGestAuthentification(string path)
 {
     try
     {
         this.path  = path;
         this.Users = new Hashtable();
         this.Users = (Hashtable)SerialTools.Deserialize(path);
     }
     catch (IOException e)
     {
         Console.WriteLine(e.ToString());
     }
 }