static void proxy_ChangePasswordCompleted(object sender, ChangePasswordCompletedEventArgs e) { Guid callerKey = (Guid)e.UserState; if (_callbacks.ContainsKey(callerKey)) { int status = e.Result; ((ChangePasswordCallback)_callbacks[callerKey]).Invoke(status); _callbacks.Remove(callerKey); } }
private void service_ChangePasswordCompleted(object sender, ChangePasswordCompletedEventArgs e) { try { Fault = e.fault; LoginDetail = e.Result; if (ChangePasswordCompleted != null) { ChangePasswordCompleted(this, e); } } catch (Exception) { throw; } }
void ChangePasswordCompleted(object sender, ChangePasswordCompletedEventArgs e) { if (e.Error == null) { tmpPass = null; Status = "Heslo bylo úspěšně změněno!"; NewPassword = null; OldPassword = null; ConfirmPassword = null; } else { LoginInit.user.Password = tmpPass; tmpPass = null; ErrorProvider.ShowError(e.Error, Navigator); } securityClient.ChangePasswordCompleted -= ChangePasswordCompleted; Busy = false; }