Beispiel #1
0
 public void adduser()
 {
     Proxies.AppDataClient DataClient = new Proxies.AppDataClient();
     try
     {
         if (Password == ConfirmPassword)
         {
             DataClient.Open();
             DataClient.AddNewUser(this);
             OnUserCreated();
         }
         else
         {
             throw new Exception("Password's Do not match!");
         }
     }
     finally
     {
         DataClient.Close();
     }
 }