private async void ChangeToApplied(object sender, EventArgs e) { try { flyinglayout.IsVisible = false; namegrid.IsEnabled = false; AppliedJobsLayout.Opacity = 0.0; await AppliedJobsLayout.FadeTo(0); constants.CurrentDocumentType = DocumentType.BackgroundCheck; ((DocumentsReports)this.BindingContext).BindingMethod((int)DocumentType.BackgroundCheck); await Task.WhenAll( UnderlineBoxView.TranslateTo(UnderlineBoxView.Width * 2, 0), CurrentJobsLayout.TranslateTo(-Width * 2, 0), SavedJobsLayout.TranslateTo(-Width, 0), AppliedJobsLayout.TranslateTo(0, 0) ); await AppliedJobsLayout.FadeTo(1); AppliedJobsLayout.Opacity = 1; namegrid.IsEnabled = true; } catch (Exception ex) { var logged = new LoggedException.LoggedException("Error in TappedWantedDocuments.xaml.cs", ex); await logged.LoggAPI(); } }
protected async override void OnAppearing() { await Task.Yield();// to wait page to intilize await Task.WhenAll(UnderlineBoxView.TranslateTo(0, 0), personalinfogrid.TranslateTo(0, 0), passwordgrid.TranslateTo(Width, 0)); LoadingIndicatorHelper.Intialize(this); await((personalinodviewmodel)this.BindingContext).LoadBasicinfo(); phone.Text = ((personalinodviewmodel)this.BindingContext).Phonelocal; var dateofbirthvar = ((personalinodviewmodel)this.BindingContext).BirthDate.Date.ToString("MM/dd/yyyy"); if (dateofbirthvar != null) { DateLabel.Text = dateofbirthvar; } var isMale = ((personalinodviewmodel)this.BindingContext).IsMale; if (isMale) { Male.Source = "RadiooCh.png"; Female.Source = "RadiooUn.png"; } else { Male.Source = "RadiooUn.png"; Female.Source = "RadiooCh.png"; } }
async void avaialble(object sender, System.EventArgs e) { await Task.WhenAll( UnderlineBoxView.TranslateTo(0, 0), freegrid.TranslateTo(Width, 0), dayofweek.TranslateTo(0, 0) ); }
async void personaltab(object sender, System.EventArgs e) { personalinodviewmodel.ReCenterViewToPassword = false; await Task.WhenAll( UnderlineBoxView.TranslateTo(0, 0), personalinfogrid.TranslateTo(0, 0), passwordgrid.TranslateTo(Width, 0)); }
async void clicked_how_it_work(object sender, System.EventArgs e) { contactusviewmodel.ReCenterViewToContactUs = false; await Task.WhenAll( UnderlineBoxView.TranslateTo(UnderlineBoxView.Width * 2, 0), FAQS.TranslateTo(-Width * 2, 0), contactusview.TranslateTo(-Width, 0), howitworkview.TranslateTo(0, 0) ); }
async void Term(object sender, System.EventArgs e) { personalinodviewmodel.ReCenterViewToPassword = false; await Task.WhenAll( UnderlineBoxView.TranslateTo(0, 0), termsgrid.TranslateTo(0, 0), agreementgrid.TranslateTo(Width, 0) //imagestack.TranslateTo(0,0) ); }
private async void ChangeToCurrent(object sender, EventArgs e) { //TODO:SEARCH JobListHelper.IsSaved = false; JobListHelper.IsSearching = false; JobListHelper.IsApplied = false; await Task.WhenAll(UnderlineBoxView.TranslateTo(0, 0), CurrentJobsLayout.TranslateTo(0, 0), SavedJobsLayout.TranslateTo(Width, 0), AppliedJobsLayout.TranslateTo(Width * 2, 0) ); MyJobstap.BackgroundColor = Color.FromHex("#87c8ee"); iMyJobstap.Source = "MyJobsi.png"; MyJobstapLabel.TextColor = Color.White; }
private async void SkippComaand(object sender, EventArgs e) { await cooloring.FadeTo(0); cooloring.IsVisible = false; contactusviewmodel.ReCenterViewToContactUs = false; await Task.WhenAll( UnderlineBoxView.TranslateTo(UnderlineBoxView.Width * 2, 0), FAQS.TranslateTo(-Width * 2, 0), contactusview.TranslateTo(-Width, 0), howitworkview.TranslateTo(0, 0) ); //await mainGrid.FadeTo(1); //mainGrid.IsVisible = true; }
private async void ChangeToApplied(object sender, EventArgs e) { //TODO:SEARCH JobListHelper.IsSaved = false; JobListHelper.IsSearching = false; JobListHelper.IsApplied = true; await Task.WhenAll( UnderlineBoxView.TranslateTo(UnderlineBoxView.Width * 2, 0), CurrentJobsLayout.TranslateTo(-Width * 2, 0), SavedJobsLayout.TranslateTo(-Width, 0), AppliedJobsLayout.TranslateTo(0, 0) ); //MyJobstap.BackgroundColor = Color.White; //MyJobstapLabel.TextColor = Color.DimGray; //iMyJobstap.Source = "MyJobs.png"; }