示例#1
0
    private void getLocationAndSetSPUser()
    {
        if (checkIfValueHasBeenSet(location))
        {
            String[] latAndLongt = location.Split(',');

            String latitude   = spliLatAndLongt(latAndLongt [0]);
            String longtitude = spliLatAndLongt(latAndLongt [1]);

            SponsorPay.SPLocation locationToBeSet = new SponsorPay.SPLocation();
            locationToBeSet.Lat  = float.Parse(latitude);
            locationToBeSet.Long = float.Parse(longtitude);

            SPUser.SetLocation(locationToBeSet);
        }
    }