protected override async void OnAppearing() { await Task.Yield(); LoadingIndicatorHelper.Intialize(this); btnUpload.IsEnabled = true; SkillstextDescription.Text += RegisterViewModel.AllSkilssText; RegisterViewModel.ExperienceSkills = null; RegisterViewModel.AllSkilssText = string.Empty; if (SkillstextDescription.Text == RegisterViewModel.SelectOneText) { SkillstextDescription.Text = string.Empty; } if (((AddNewExperience)this.BindingContext).Current) { currenr.Source = "CheckedCaroot.png"; to.IsEnabled = false; to.BackgroundColor = Color.FromHex("#f1f1f1"); } else { currenr.Source = "UNCWWBackround.png"; to.IsEnabled = true; to.TextColor = Color.FromHex("#60afdf"); to.BackgroundColor = Color.Transparent; //to.Date = DateTime.Today.Date; } }
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"; } }
public LoginPage() { LoadingIndicatorHelper.Intialize(this); NavigationPage.SetHasNavigationBar(this, false); InitializeComponent(); HelpersIntializer.IntialilizeAllHelpers(); BindingContext = new LoginViewModel(Navigation); Settings.AccessToken = null; Settings.Username = ""; Settings.Password = ""; cooloring.BackgroundColor = new Color(255, 255, 255, 0.6); if (Xamarin.Forms.Device.Idiom == TargetIdiom.Phone) { this.BackgroundImage = "background_2"; } else if (Xamarin.Forms.Device.Idiom == TargetIdiom.Tablet) { this.BackgroundImage = "background_Tablet"; } if (Device.RuntimePlatform == Device.iOS) { logo.WidthRequest = 300; } }
protected override async void OnAppearing() { await Task.Yield(); LoadingIndicatorHelper.Intialize(this); ((DocumentsReports)this.BindingContext).BindingMethod((int)DocumentType.MedicalReports); }
protected override async void OnAppearing() { await Task.Yield(); LoadingIndicatorHelper.Intialize(this); await Navigation.PushAsync(new JobListing()); }
protected async override void OnAppearing() { await Task.Yield();// to wait page to intilize LoadingIndicatorHelper.Intialize(this); clickbtn.IsEnabled = true; ((ResumeViewModel)this.BindingContext).GetData(); }
public jobtimesheet() { InitializeComponent(); timesheettext.BackgroundColor = Color.FromHex("#87c8ee"); itimesheettext.Source = "Timesheeti.png"; timesheettextLabel.TextColor = Color.White; LoadingIndicatorHelper.Intialize(this); }
protected async override void OnAppearing() { await Task.Yield();// to wait page to intilize LoadingIndicatorHelper.Intialize(this); ((GetLicenceView)this.BindingContext).BindingMethod(); }
public Mysupportpage() { try { LoadingIndicatorHelper.Intialize(this); InitializeComponent(); cooloring.BindingContext = new List <string>(); cooloring.BackgroundColor = new Color(0, 0, 0, 0.46); if (Device.RuntimePlatform == Device.iOS) { MainCarouselView.Margin = new Thickness(0, 20, 0, 0); imagenames = new List <string> { "iosCV.png", "iosCV2.png", "iosCV3.png", "iosCV4.png", "iosCV5.png", "iosCV6.png" }; } else { imagenames = new List <string> { "DroidCV.png", "DroidCV2.png", "DroidCV3.png", "DroidCV4.png", "DroidCV5.png", "DroidCV6.png" }; } MainCarouselView.ItemsSource = imagenames; how.Text = "click the below to start your tour how it works!"; faq = new ObservableCollection <FAQmodel> { new FAQmodel { image = "category", name = "Denise Clark", date = DateTime.Now.ToString("MM-dd-yy"), question = "Hello I want to hire you could you please tell me more about your experiance as a waiter." }, new FAQmodel { image = "category", name = "Denise Clark", date = DateTime.Now.ToString("MM-dd-yy"), question = "Hello I want to hire you could you please tell me more about your experiance as a waiter." }, new FAQmodel { image = "category", name = "Denise Clark", date = DateTime.Now.ToString("MM-dd-yy"), question = "Hello I want to hire you could you please tell me more about your experiance as a waiter." }, new FAQmodel { image = "category", name = "Denise Clark", date = DateTime.Now.ToString("MM-dd-yy"), question = "Hello I want to hire you could you please tell me more about your experiance as a waiter." }, new FAQmodel { image = "category", name = "Denise Clark", date = DateTime.Now.ToString("MM-dd-yy"), question = "Hello I want to hire you could you please tell me more about your experiance as a waiter." }, new FAQmodel { image = "category", name = "Denise Clark", date = DateTime.Now.ToString("MM-dd-yy"), question = "Hello I want to hire you could you please tell me more about your experiance as a waiter." } }; //faqlist.ItemsSource = faq; } catch (Exception ex) { var logged = new LoggedException.LoggedException("Error in Mysupportpage.xaml.cs", ex); logged.LoggAPI(); } }
protected override async void OnAppearing() { await Task.Yield(); btnUpload.IsEnabled = true; LoadingIndicatorHelper.Intialize(this, true, CallBack); ((Licencesupdateviewmodel)this.BindingContext).isenabel = true; LicenseTitleLabel.Text = Licencesupdateviewmodel.SelectedLicenseType.title; }
public bool TimeOutExceptionMethod(Exception ex) { if (ex is TaskCanceledException) { LoadingIndicatorHelper.HideIndicator(); App.Current.MainPage.DisplayAlert("Slow Connection", "Slow connection detected between your device and PTHippo servers", "Cancel"); return(true); } return(false); }
public Profile() { InitializeComponent(); LoadingIndicatorHelper.Intialize(this); Device.OnPlatform(Android: () => enable.Margin = new Thickness(0, 2, 0, 0)); Device.OnPlatform(Android: () => stackselect.Margin = new Thickness(0, 7, 0, 0), iOS: () => yearsofexperience.Margin = new Thickness(0, -21, 0, 0)); Device.OnPlatform(Android: () => stackselect.Margin = new Thickness(0, 6, 0, 0), iOS: () => yearsofexperience.Margin = new Thickness(0, -20, 0, 0)); }
public async Task BindData(bool reloadData = false, bool clearSerach = false) { if (clearSerach) { ZipCode = null; enddate = DateTime.Now; startdate = DateTime.Now; minhourrate = 0; maxhourate = 0; //JobListHelper.IsSearching = false; } if (IsLoadingData) { return; } //if (diff.TotalSeconds <= 2) //return; JobListHelper.LastScrollTime = DateTime.Now; LoadingIndicatorHelper.AddProgressDisplay(); IsLoadingData = true; if (reloadData || JobListHelper.SearchJobsModel == null || JobListHelper.SearchJobsModel.result == null || JobListHelper.SearchJobsModel.result.Count() == 0) { await JobsListResolver.LoadJobsListSearch(searchtext, ZipCode, startdate, enddate, (int)minhourvar, (int)maxhourate); } try { JobSearchBindcast = new ObservableCollection <JobDataModel>(JobListHelper.SearchJobsModel.result); } catch (Exception ex) { var logged = new LoggedException.LoggedException("Error in jobsearchviewmodel", ex); await logged.LoggAPI(); } finally { JobsCounterHelper.NoOfCurrentJobs = JobSearchBindcast.Count(); CurrentCounter = JobsCounterHelper.NoOfCurrentJobsText(); Applied = JobsCounterHelper.NoOfAppliedJobsText(); Saved = JobsCounterHelper.NoOFSavedJobsText(); IsLoadingData = false; } LoadingIndicatorHelper.HideIndicator(); }
private async Task PreAPICall() { LoadingIndicatorHelper.AddProgressDisplay(); //Check Internet Connection if (!CrossConnectivity.Current.IsConnected) { await InternetOrServeHelper.ShowCheckInternet(); } else { InternetOrServeHelper.ShowNoInternetMessage = false; } }
public ChooseMytimes() { //LoadingIndicatorHelper.Intialize(this); InitializeComponent(); LoadingIndicatorHelper.Intialize(this); fromtime.Time = DateTime.Today.TimeOfDay; totime.Time = DateTime.Today.TimeOfDay; availabilitytext.BackgroundColor = Color.FromHex("#87c8ee"); iAvailabilitytext.Source = "Availabilityi"; AvailabilitytextLabel.TextColor = Color.White; if (MonthlyControlHelper.forceReload == false) { MonthlyControlHelper.forceReload = true; } }
public Useragreementpage() { LoadingIndicatorHelper.Intialize(this); NavigationPage.SetHasBackButton(this, false); InitializeComponent(); // agreement.Text = constants.useragremeenttext; if (Xamarin.Forms.Device.Idiom == TargetIdiom.Phone) { this.BackgroundImage = "background_2"; } else if (Xamarin.Forms.Device.Idiom == TargetIdiom.Tablet) { this.BackgroundImage = "background_Tablet"; } mainstack.BackgroundColor = new Color(255, 255, 255, 0.6); }
public SignUpPartTwo() { InitializeComponent(); LoadingIndicatorHelper.Intialize(this); BindingContext = new RegisterViewModel(Navigation); if (RegisterViewModel.RBM.yearsOfExperience > 0) { yearsofexperience.Text = RegisterViewModel.RBM.yearsOfExperience.ToString(); //((RegisterViewModel)this.BindingContext).Enteryearsofexperience = RegisterViewModel.RBM.yearsOfExperience.ToString(); } try { selectedLanguge.Text = RegisterViewModel.LangaugeSkillstext; selectedOther.Text = RegisterViewModel.SpecialitySkillstext; selectedComputer.Text = RegisterViewModel.Computerskillstext; } catch (Exception ex) { var logged = new LoggedException.LoggedException("Error in ", ex); logged.LoggAPI(); } if (Device.RuntimePlatform == Device.iOS) { logo.WidthRequest = 300; } BackGroundColor.BackgroundColor = new Color(255, 255, 255, 0.6); if (Xamarin.Forms.Device.Idiom == TargetIdiom.Phone) { this.BackgroundImage = "background_2"; } else if (Xamarin.Forms.Device.Idiom == TargetIdiom.Tablet) { this.BackgroundImage = "background_Tablet"; } Device.OnPlatform(Android: () => selectstack.Margin = new Thickness(0, 7, 0, 0)); Device.OnPlatform(Android: () => yearsofexperience.Margin = new Thickness(0, -4, 0, 0)); }
public ForgetPassword() { LoadingIndicatorHelper.Intialize(this); InitializeComponent(); BindingContext = new ForgetpasswordViewModel(Navigation); BackGroundColor.BackgroundColor = new Color(255, 255, 255, 0.6); if (Xamarin.Forms.Device.Idiom == TargetIdiom.Phone) { this.BackgroundImage = "background_2"; } else if (Xamarin.Forms.Device.Idiom == TargetIdiom.Tablet) { this.BackgroundImage = "background_Tablet"; } if (Device.RuntimePlatform == Device.iOS) { logo.WidthRequest = 300; } }
protected override async void OnAppearing() { await Task.Yield(); LoadingIndicatorHelper.Intialize(this); if (constants.CurrentDocumentType == DocumentType.initial) { btnUpload.Text = " Medical Report "; } else if (constants.CurrentDocumentType == DocumentType.MedicalReports) { btnUpload.Text = " Medical Report "; } else if (constants.CurrentDocumentType == DocumentType.LiabilityInsurance) { btnUpload.Text = " Liability Insurance "; } else if (constants.CurrentDocumentType == DocumentType.BackgroundCheck) { btnUpload.Text = " Background Check "; } //UploadDocName }
public SelectDay() { LoadingIndicatorHelper.Intialize(this); InitializeComponent(); BindingContext = new timedetailviewmodel(Navigation); date.MinimumDate = DateTime.Now; if (((timedetailviewmodel)this.BindingContext).Id == null) { date.Date = DateTime.Today.Date; ((timedetailviewmodel)this.BindingContext).Timefrom = DateTime.Today.TimeOfDay; ((timedetailviewmodel)this.BindingContext).Timeto = DateTime.Today.TimeOfDay; from.Time = DateTime.Today.TimeOfDay; to.Time = DateTime.Today.TimeOfDay; } else { date.Date = ((timedetailviewmodel)this.BindingContext).Date; from.Time = ((timedetailviewmodel)this.BindingContext).Timefrom; to.Time = ((timedetailviewmodel)this.BindingContext).Timeto; } }
public EdietExistingLicence() { InitializeComponent(); LoadingIndicatorHelper.Intialize(this); BindingContext = new DocumentsReports(Navigation); string title = constants.CurrentDocumentType.ToString(); StringBuilder builder = new StringBuilder(); foreach (char c in title) { if (Char.IsUpper(c) && builder.Length > 0) { builder.Append(' '); } builder.Append(c); } title = builder.ToString(); ScreenTitlenavbar.Title = title; titletype.Text = constants.reporttitle; filetitle.Placeholder = constants.placeholder; }
public Firsttime() { LoadingIndicatorHelper.Intialize(this); this.Navigation.PushModalAsync(new TermOfUsePage()); InitializeComponent(); }
private void AfterAPICall() { LoadingIndicatorHelper.HideIndicator(); }
protected override async void OnAppearing() { await Task.Yield(); LoadingIndicatorHelper.Intialize(this); }
protected override async void OnAppearing() { try { // await LoadJobs(); //JobListHelper.ExpireTimerEnabled = false; await Task.Yield(); LoadingIndicatorHelper.Intialize(this); if (JobListHelper.IsApplied) { //Refresh Applied List int oldCount = JobsCounterHelper.NoOfAppliedJobs; await((AppliedJobsViewModel)AppliedJobsLayout.BindingContext).BindData(true); int newCount = oldCount + 1; JobsCounterHelper.NoOfAppliedJobs = newCount; JobsCounterHelper._noOfAppliedJobsText = JobsCounterHelper.NoOfAppliedJobsText(); ((JobSearchviewModel)namegrid.BindingContext).Applied = JobsCounterHelper.NoOfAppliedJobsText(); ChangeToApplied(null, null); JobListHelper.IsSearching = false; JobListHelper.IsSaved = false; } //else if (JobListHelper.IsSearching) //{ // JobListHelper.IsApplied = false; // JobLissearchtaptHelper.IsSaved = false; // .BackgroundColor = Color.FromHex("#87c8ee"); // isearchtap.Source = "Magnifier.png"; // searchtapLabel.TextColor = Color.White; // MyJobstap.BackgroundColor = Color.White; // iMyJobstap.Source = "MyJobsi.png"; // MyJobstapLabel.TextColor = Color.DimGray; // ChangeToCurrent(null, null); //} else if (JobListHelper.IsSaved) { JobListHelper.IsSearching = false; JobListHelper.IsSaved = false; ChangeToSaved(null, null); } if (constants.SearchView) { constants.SearchView = false; //if (FilterGrid.IsVisible) //{ // FilterGrid.FadeTo(0); // FilterGrid.IsVisible = false; // searchtap.BackgroundColor = Color.White; // isearchtap.Source = "Magnifier.png"; // searchtapLabel.TextColor = Color.DimGray; // //gray color //} //else //{ FilterGrid.IsVisible = true; CurrentJobsLayout.IsVisible = false; namegrid.IsVisible = false; FilterGrid.FadeTo(1); searchtap.BackgroundColor = Color.FromHex("#87c8ee"); isearchtap.Source = "Magnifieri.png"; searchtapLabel.TextColor = Color.White; MyJobstap.BackgroundColor = Color.White; iMyJobstap.Source = "MyJobs.png"; MyJobstapLabel.TextColor = Color.DimGray; //} } else { MyJobstap.BackgroundColor = Color.FromHex("#87c8ee"); iMyJobstap.Source = "MyJobsi.png"; MyJobstapLabel.TextColor = Color.White; CurrentJobsLayout.IsVisible = true; } } catch (Exception ex) { var logged = new LoggedException.LoggedException("error in joblisting.xaml.cs", ex); await logged.LoggAPI(); } }
public Bankaccount() { LoadingIndicatorHelper.Intialize(this); InitializeComponent(); BindingContext = new BankAccountViewModel(); }