private async void cancelConfirmHiring_Clicked(object sender, EventArgs e) { ThirdGrid.IsVisible = false; secondGrid.IsVisible = false; firstgrid.IsVisible = true; await firstgrid.FadeTo(1); await secondGrid.FadeTo(0); await ThirdGrid.FadeTo(0); }
private async void B6_Clicked(object sender, EventArgs e) { //Open confirm hiring modal ThirdGrid.IsVisible = true; secondGrid.IsVisible = false; firstgrid.IsVisible = false; await firstgrid.FadeTo(0); await secondGrid.FadeTo(0); await ThirdGrid.FadeTo(1); }
private async void TapGestureRecognizer_Tapped_4(object sender, EventArgs e) { //Close Confirm Hiring Modal ThirdGrid.IsVisible = false; secondGrid.IsVisible = false; firstgrid.IsVisible = true; await firstgrid.FadeTo(1); await secondGrid.FadeTo(0); await ThirdGrid.FadeTo(0); }
//await Navigation.PushAsync(new MapJobLocation(lat, lang)); private async void Button_Clicked_5(object sender, EventArgs e) { try { //Confirm Hiring confirmhiring.IsEnabled = false; RestClient <bool> Dl = new RestClient <bool>(); JobCancel jc = new JobCancel() { id = jaid, status = (int)(UserType.Employee) }; var responsex = await Dl.PutAsync(URLConfig.Changestatus, null, jc); if (responsex == true) { await loadData(idforsaving); await ButtonApperance(); } ThirdGrid.IsVisible = false; secondGrid.IsVisible = false; firstgrid.IsVisible = true; await firstgrid.FadeTo(1); await secondGrid.FadeTo(0); await ThirdGrid.FadeTo(0); await ButtonApperance(); confirmhiring.IsEnabled = true; } catch (Exception exception) { var logged = new LoggedException.LoggedException("Error in jobdetails.xaml.cs", exception); logged.LoggAPI(); } }
private async void Button_Clicked_4(object sender, EventArgs e) { //ApplyButton ApplyButton.IsEnabled = false; try { if (((jobsDetailsViewModel)this.BindingContext)._jobModel.isPartialyAllowed == true && ((jobsDetailsViewModel)this.BindingContext).jobscollection.ToList() == null) { await DisplayAlert("", "Schedule", "Please select fine dates"); return; } else if (((jobsDetailsViewModel)this.BindingContext)._jobModel.isPartialyAllowed == true) { JA = new JobApply() { jobId = ((jobsDetailsViewModel)this.BindingContext)._jobModel.id, requestedHrRate = Convert.ToInt32(Slder.Value), jobApplicantSchedules = ((jobsDetailsViewModel)this.BindingContext).DatesSelected.ToList(), }; } else { JA = new JobApply() { jobId = ((jobsDetailsViewModel)this.BindingContext)._jobModel.id, requestedHrRate = Convert.ToInt32(Slder.Value), jobApplicantSchedules = ((jobsDetailsViewModel)this.BindingContext).jobscollection.ToList(), }; } RestClient <bool> Applytojob = new RestClient <bool>(); var xbool = await Applytojob.PostApi(URLConfig.applyJop, JA); //await loadData(idforsaving); //await ButtonApperance(); if (xbool == true) { JobListHelper.IsApplied = true; ThirdGrid.IsVisible = false; secondGrid.IsVisible = false; firstgrid.IsVisible = true; await firstgrid.FadeTo(1); await secondGrid.FadeTo(0); await ThirdGrid.FadeTo(0); //Refresh the Page await loadData(idforsaving); await ButtonApperance(); } else { ThirdGrid.IsVisible = false; secondGrid.IsVisible = false; firstgrid.IsVisible = true; await firstgrid.FadeTo(1); await secondGrid.FadeTo(0); await ThirdGrid.FadeTo(0); //await loadData(idforsaving); //await ButtonApperance(); } //dateselecedlistview.HeightRequest = (35 * tepmdateselected.Count); //dateselecedlistview.HeightRequest = (40 * tepmdateselected.Count) + (10 * tepmdateselected.Count); } catch (Exception ex) { var logged = new LoggedException.LoggedException("Error in jobdetails.xaml.cs", ex); await logged.LoggAPI(); } finally { ApplyButton.IsEnabled = true; } }