public async void btnGroupPhotoTrip_Clicked(object sender, EventArgs e)
        {
            if (entryTripName.Text == null || projectName.Equals("") || entryTripName.Text.Equals(""))
            {
                DependencyService.Get <ICrossPlatformToast>().ShortAlert("Need a Trip name before taking photo");
                return;
            }

            await TakePhoto.CallCamera(projectName + "-" + trip.TripName);
        }
Exemple #2
0
        // site photo button event
        public async void btnSitePhoto_Clicked(object sender, EventArgs e)
        {
            // get site name
            if (entrySiteName.Text == null)
            {
                DependencyService.Get <ICrossPlatformToast>().ShortAlert("Need a Site name before taking photo");
                return;
            }

            if (tripName.Equals("") || entrySiteName.Text.Equals(""))
            {
                DependencyService.Get <ICrossPlatformToast>().ShortAlert("Select a Site and name the Site before taking photo");
                return;
            }
            await TakePhoto.CallCamera(tripName + "-" + entrySiteName.Text);
        }
Exemple #3
0
        // specimen photo button event
        public async void btnSetSpecimenPhoto_Clicked(object sender, EventArgs e)
        {
            // get specimen name first
            if (entryFieldID.Text == null)
            {
                DependencyService.Get <ICrossPlatformToast>().ShortAlert("Need a specimen field ID before taking photo");
                return;
            }

            if (siteName.Equals("") || entryFieldID.Text.Equals(""))
            {
                // toast need specimen id
                DependencyService.Get <ICrossPlatformToast>().ShortAlert("Must enter specimen field ID before taking photo");
                return;
            }

            await TakePhoto.CallCamera(siteName + "-" + entryFieldID.Text);
        }