//Just a Beta function for development
        async void CleanBtn_Clicked(object sender, System.EventArgs e)
        {
            string deleteDecision = await DisplayActionSheet("Alert !! Are you sure? All the data will be lose. it can not be recover anymore", "Cancel", null, "Confirm");

            if (deleteDecision == "Confirm")
            {
                LocalDatabase.CleanAllDataInTable();
            }
            OnAppearing();
        }
Beispiel #2
0
        // If use wannt to clean out the geoData in the database
        async void CleanBtn_Clicked(object sender, System.EventArgs e)
        {
            // Display alert message to the user, find out are they really wanna delete all the data
            string deleteDecision = await DisplayActionSheet("Alert !! Are you sure? All the data will be lose. it can not be recover anymore", "Cancel", null, "Confirm");

            // If they selected confirm to delete the data
            if (deleteDecision == "Confirm")
            {
                LocalDatabase.CleanAllDataInTable(); // Clean all the data in Geodata table
            }
            // Refreash the page
            OnAppearing();
        }
Beispiel #3
0
 public void CanDeleteAlltheGeoDataFromDatabase()
 {
     LocalDatabase.CleanAllDataInTable();
     Assert.AreEqual(LocalDatabase.GetAllGeoDataSet().Count, 0);
 }