private void WebserviceLoginCompleted(object sender, LoginCompletedEventArgs e)
        {
            var asyncRequestInfo = e.UserState as AsyncRequestInfo;
            if (asyncRequestInfo == null) throw new NullReferenceException("asyncRequestInfo (LoginCompleted)");

            bool result = e.Result;
            if (result) WebserviceState = WebserviceWrapperState.Connected;

            asyncRequestInfo.Callback(new WebserviceResult(asyncRequestInfo, result));
        }
Example #2
0
 protected virtual void OnLoginCompleted(LoginCompletedEventArgs e)
 {
     var handler = LoginCompleted;
     if (handler != null) handler(this, e);
 }