public async void Register()
 {
     if (_passwordBox.Password != _passwordBox2.Password)
     {
         Message = LocalizationHelper.GetString("PasswordMatchFail");
         return;
     }
     using (var svc = new UserServiceClient())
     {
         try
         {
             await svc.RegisterUserAsync(Username, Helper.Hash(_passwordBox.Password));
             TryClose();
         }
         catch (FaultException<AlreadyRegisteredException>)
         {
             Message = LocalizationHelper.GetString("AlreadyRegistered");
         }
     }
 }