Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        private void AuthenticateUser()
        {
            var authenticate = new AuthenticateMember(this, OnAuthenticateCompleteEvent);

            authenticate.Start();
        }