public void RegisterCodeForRecovery(string email, ProgressIndicator pi)
        {
            if (NetworkInterface.GetIsNetworkAvailable())
            {
                AsyncRequest      async             = new AsyncRequest(pi, this.Page);
                AsyncRequestState asyncRequestState = new AsyncRequestState(async.XMLConsumption);
                async.Invoke(5000, asyncRequestState, string.Format("http://www.thinkbackpacking.com/DatingDiary/Register.php?email={0}&pin={1}", email, ((SetPassCode)Page).txtRetype.Text));

                //return new SetPassCodeResult() { Success = asyncRequestState.success, Message = asyncRequestState.success ? "Your pass code has been set" : "There was an error in connecting the remote server. Your pass code has not been set" };
            }
            else
            {
                MessageBox.Show("You do not have any connectivity to complete the operation at this time", "Information", MessageBoxButton.OK);
            }
            //return new SetPassCodeResult() { Success = false, Message = "You do not have any connectivity to complete the operation at this time" };
        }