public SamplingPointsPage(AccessToken token, string serverUrl, SurveyDetails surveyDetails)
 {
     InitializeComponent();
     Token          = token;
     ServerUrl      = serverUrl;
     SurveyDetails  = surveyDetails;
     SampleData     = new SamplingPointsViewModel(Token, ServerUrl, SurveyDetails, null);
     BindingContext = SampleData;
 }
        public async Task Upload_File()
        {
            try
            {
                var fileData = await CrossFilePicker.Current.PickFile();

                SampleData = new SamplingPointsViewModel(Token, ServerUrl, SurveyDetails, fileData, true, "Uploading...");

                BindingContext = SampleData;
            }
            catch (Exception e)
            {
                await DisplayAlert("Error", $"Something went wrong uploading samplingpoint {e.Message}", "Ok");

                Console.WriteLine(e);
                throw;
            }
        }