private void OnAuthenticateCompleteEvent(object sender, BackgroundTaskEventArgs e) { AuthenticateMember authenticateMember = sender as AuthenticateMember; if (e.Result) { if ((authenticateMember.MemberData != null) && (authenticateMember.MemberData.Valid == false)) { ShowMsgBox(Resource.String.ApplicationName, Resource.String.invalid_account, (senderAlert, args) => { StartAccountActivity(); }); } else { GetOrderDates(authenticateMember.MemberData); } } else { ShowMsgBox(Resource.String.ApplicationName, Resource.String.network_error); } }
private void AuthenticateUser() { var authenticate = new AuthenticateMember(this, OnAuthenticateCompleteEvent); authenticate.Start(); }