Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        private void service_ChangePasswordCompleted(object sender, ChangePasswordCompletedEventArgs e)
        {
            try
            {
                Fault       = e.fault;
                LoginDetail = e.Result;

                if (ChangePasswordCompleted != null)
                {
                    ChangePasswordCompleted(this, e);
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
        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);
            }
        }