async void ProcessSaveChangesJobCommand()
        {
            TranslateExtension tran   = new TranslateExtension();
            string             info   = tran.GetProviderValueString("ButtonInfoConfirmSaveChanges");
            string             save   = tran.GetProviderValueString("ButtonSaveEdits");
            string             cancel = tran.GetProviderValueString("ButtonCancel");

            var res = await _dialog.DisplayActionSheetAsync(info, cancel, save, "");

            if (res != cancel)
            {
                // JobTypeList is a picker - and the Data class needs to store the enum text (we don't know for sure yet but current Individual does similar)
                JobDetails.JobType = JobTypeList[JobTypeSelected].JobTypeText;


                // save data here
                ApiService apiServ = new ApiService();
                await apiServ.UpdateEmployerJob(JobDetails);

                // send message back as param to update job list here
                NavigationParameters navP = new NavigationParameters();
                navP.Add("JOBUPDATE", JobDetails.JobPostId);
                await _nav.GoBackAsync(navP);
            }
        }
Example #2
0
        private async Task DeleteRec(SubUser obj)
        {
            TranslateExtension trn = new TranslateExtension();

            var delete    = trn.GetProviderValueString("ButtonDelete");
            var deleteMsg = trn.GetProviderValueString("DeleteUserRecruiterMessage");
            var ok        = trn.GetProviderValueString("ButtonOk");
            var cancel    = trn.GetProviderValueString("ButtonCancel");
            var res       = await this._dialog.DisplayAlertAsync(delete, deleteMsg, ok, cancel);

            ApiService api = new ApiService();

            if (res == true)
            {
                Dialog.ShowLoading();
                var isDeleted = await api.DeleteCompanyUserAsync(obj.eyrUserCredentialId);

                Dialog.HideLoading();
                if (isDeleted)
                {
                    Dialog.ShowLoading();
                    await LoadData();

                    Dialog.HideLoading();
                }
                else
                {
                    Dialog.ShowErrorAlert("Unable to delete");
                }
            }
        }
        public LoginPageViewModel(INavigationService navigationService, IPageDialogService dialog) : base(navigationService, dialog)
        {
            //  Title = "Sign in";

#if DEBUG
            UserName = "******";
            Password = "******";
#endif
            TranslateExtension tran = new TranslateExtension();

            SigninText         = App.Translation != null ? App.Translation.employer.signinlbltitle : tran.GetProviderValueString("ButtonSignIn");
            UsernameText       = App.Translation != null ? App.Translation.employer.guestprofiledetlblusername : tran.GetProviderValueString("LoginUserText");
            UsernameTextHolder = App.Translation != null ? App.Translation.employer.guestprofiledetlblusername : tran.GetProviderValueString("LoginEnterUsername");

            PasswordText       = tran.GetProviderValueString("LoginPassText");
            PasswordTextHolder = tran.GetProviderValueString("LoginEnterPassword");


            //PasswordText = App.Translation != null ? App.Translation.employer.guestprofiledetlblusername : tran.GetProviderValueString("LoginPassText");
            //PasswordTextHolder = App.Translation != null ? App.Translation.employer.guestprofiledetlblusername : tran.GetProviderValueString("LoginEnterPassword");
            LoginForgotPassword  = App.Translation != null ? App.Translation.employer.guestprofiledetlblusername : tran.GetProviderValueString("LoginForgotPassword");
            StartContinueAsGuest = App.Translation != null ? App.Translation.employer.signinbtnguest : tran.GetProviderValueString("StartContinueAsGuest");
            LoginNoAccountSignup = App.Translation != null ? App.Translation.employer.signinbtnsignup : tran.GetProviderValueString("LoginNoAccountSignup");



            LostPasswordCommand = new DelegateCommand(LostPassword);
            SignInCommand       = new DelegateCommand(async() => { await SignIn(); }, CanSignIn);
            GuestCommand        = new DelegateCommand(ProcessGuestCommand);
            SignupCommand       = new DelegateCommand(ProcessSignupCommand);
        }
        private async void ProcessSendInviteCommand()
        {
            // ********** TODO **********
            // Call API to send Invite
            TranslateExtension trn = new TranslateExtension();
            var title = trn.GetProviderValueString("CanadidateSendInvite");
            var msg   = trn.GetProviderValueString("CandidateSendInviteMessage");
            var btn   = trn.GetProviderValueString("ButtonOk");
            await _dialog.DisplayAlertAsync(title, msg, btn);

            await _nav.GoBackAsync();
        }
        private void SetWatchText()
        {
            TranslateExtension tran = new TranslateExtension();


            if (IsWatching)
            {
                WatchText = tran.GetProviderValueString("TextWatching");
            }
            else
            {
                WatchText = tran.GetProviderValueString("TextWatch");
            }
        }
        private async void LoadSource()
        {
            ApiService apiServ = new ApiService();

            try
            {
                //ProgramsSource = await apiServ.GetAllProgramsAsync();

                var progList = await Web.AWHttpClient.Instance.GetPrograms();

                if (progList.Data != null && progList.Data.Programs.Count > 0)
                {
                    ProgramsSource = new ObservableCollection <Program>(progList.Data.Programs);
                }



                //for program status text

                TranslateExtension tran            = new TranslateExtension();
                string             progStatusLabel = tran.GetProviderValueString("LabelProgramStatusText");
                // setup Program Status:
                foreach (var item in ProgramsSource)
                {
                    item.StatusText = $"{progStatusLabel} {item.StatusText} ";
                }
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
            }
        }
        public ApplicationsPageViewModel(INavigationService navigationService, IPageDialogService dialog) : base(navigationService, dialog)
        {
            ApplicationSelectedCommand = new DelegateCommand <ApplicationData>(ProcessProgramSelected);

            TranslateExtension tran = new TranslateExtension();



            Title = tran.GetProviderValueString("LabelApplicationsTitle");

            Tab1Text = tran.GetProviderValueString("Applications");
            Tab2Text = tran.GetProviderValueString("LabelJobPosts");
            //Tab3Text = tran.GetProviderValueString("LabelWatchList");
            Tab3Text = App.Translation != null ? App.Translation.employer.jobswatchlisttabtitle : tran.GetProviderValueString("LabelWatchList");

            ApplicationDetailsCommand = new DelegateCommand <ApplicationsForJob>(ApplicationDetails);
            Tab1Command = new DelegateCommand(ApllicationsNavigate);
            Tab2Command = new DelegateCommand(JobPostNavigate);
            Tab3Command = new DelegateCommand(WatchListNavigate);

            InviteCommand = new DelegateCommand <ApplicationProfile>(InviteCandidate);

            // job commands
            DeleteJobCommand = new DelegateCommand <EmployerJobDetail>(ProcessDeleteJob);
            EditJobCommand   = new DelegateCommand <EmployerJobDetail>(ProcessEditJob);
            ViewJobCommand   = new DelegateCommand <EmployerJobDetail>(ProcessViewJob);
            AddNewJobCommand = new DelegateCommand(ProcessAddNewJobCommand);

            // Default Tab1
            //   ApllicationsNavigate();

            LoadData();

            MessagingCenter.Subscribe <JobPageViewModel>(this, "WatchEntryUpdated", WatchEntryUpdatedMessage);

            Task.Run(async() =>
            {
                var applicationsList = await AWHttpClient.Instance.GetApplications();
                if (applicationsList.IsSuccess)
                {
                    if (applicationsList.Result != null && applicationsList.Result.applicationsListObject != null && applicationsList.Result.applicationsListObject.applicationsList.Count > 0)
                    {
                        applicationlistsample = applicationsList.Result.applicationsListObject.applicationsList;
                    }
                }
            });
        }
        //        public DelegateCommand<EmployerJobDetail> EditJobCommand;
        //public ICommand EditJobCommand { get; }

        private async void ProcessDeleteJob(Job vals)
        {
            TranslateExtension tran    = new TranslateExtension();
            string             confirm = tran.GetProviderValueString("ButtonConfirmDelete");
            string             delete  = tran.GetProviderValueString("ButtonDelete");
            string             cancel  = tran.GetProviderValueString("ButtonCancel");

            var res = await _dialog.DisplayActionSheetAsync(confirm, cancel, delete, "");

            if (res.Equals(delete))
            {
                ApiService apiServ = new ApiService();
                if (await apiServ.DeleteEmployerJobasync(vals.jobPostId))
                {
                    JobPageSource.Remove(vals);
                }
            }
        }
Example #9
0
        private async void DeleteRep(SubUser obj)
        {
            TranslateExtension trn = new TranslateExtension();
            var delete             = trn.GetProviderValueString("ButtonDelete");
            var deleteMsg          = trn.GetProviderValueString("DeleteUserRepresentativeMessage");
            var ok     = trn.GetProviderValueString("ButtonOk");
            var cancel = trn.GetProviderValueString("ButtonCancel");
            var res    = await this._dialog.DisplayAlertAsync(delete, deleteMsg, ok, cancel);

            ApiService api = new ApiService();

            if (res == true)
            {
                await api.DeleteCompanyUserAsync(obj.eyrUserCredentialId);

                UpdateRepresentatives();
            }
        }
Example #10
0
        public PersonalDetailsViewModel(INavigationService navigationService, IPageDialogService dialog) : base(navigationService, dialog)
        {
            TranslateExtension tran = new TranslateExtension();

            Title = tran.GetProviderValueString("LabelApplicationsTitle");

            EditDetailsCommand = new DelegateCommand(DetailsNavigate);

            LoadData();
        }
Example #11
0
        public ProgramsPageViewModel(INavigationService navigationService, IPageDialogService dialog) : base(navigationService, dialog)
        {
            ProgramSelectedCommand = new DelegateCommand <EmployerProgram>(ProcessProgramSelected);

            TranslateExtension tr = new TranslateExtension();

            _statusText = tr.GetProviderValueString("LabelProgramsProgStatus");

            LoadSource();
        }
        async void ProcessDiscardChangesJobCommand()
        {
            TranslateExtension tran    = new TranslateExtension();
            string             info    = tran.GetProviderValueString("ButtonInfoDiscardChanges");
            string             discard = tran.GetProviderValueString("ButtonDiscardChanges");
            string             cancel  = tran.GetProviderValueString("ButtonCancel");


            var res = await _dialog.DisplayActionSheetAsync(info, cancel, discard, "");

            if (res != cancel)
            {
                ApiService apiServ = new ApiService();
                var        tmp     = await apiServ.GetEmployerPostedJobsAsync(1);

                var discarded = tmp.Where(x => x.JobPostId == JobDetails.JobPostId).FirstOrDefault();
                JobDetails = discarded;                 // has to exist if we are showing it but currently changing in static objects. will eb fixed when we have db.
                await _nav.GoBackAsync();
            }
        }
        private async void LoadData()
        {
            ApiService api = new ApiService();

            CompanyApplicationList = await api.GetCompanyJobApplicationsAsync(0);

            Jobs          = CompanyApplicationList.Jobs;
            JobPageSource = await api.GetEmployerPostedJobsAsync(1);

            TranslateExtension tran                = new TranslateExtension();
            string             displayJobText      = tran.GetProviderValueString("LabelApplicationsToText");
            string             applicationDateText = tran.GetProviderValueString("LabelApplicationDateText");

            // update job page source data
            foreach (var t in JobPageSource)
            {
                t.JobStatusText = tran.GetProviderValueString("LabelJobStatus");
                t.PostedText    = tran.GetProviderValueString("LabelJobPosted");

                if (string.IsNullOrEmpty(t.CompanyLogo))
                {
                    t.CompanyLogo = "jobcompanyicon.png";
                }
            }



            // do a translate here
            foreach (var itemx in Jobs)
            {
                itemx.JobDetails.ApplicationsLanguageText = displayJobText;
                foreach (var appin in itemx.Applications)
                {
                    appin.ApplicationDateText = applicationDateText;
                }
            }



            LoadWatchList();
        }
Example #14
0
        async void LoadData()
        {
            ApiServiceIndividual api = new ApiServiceIndividual();

            BadgeSource = await api.GetBadgesAsync();

            TranslateExtension trans = new TranslateExtension();

            // set init data here
            foreach (var item in BadgeSource)
            {
                if (item.Locked == 0) // locked item
                {
                    item.BadgeIcon   = "startemptyy.png";
                    item.BadgeStatus = trans.GetProviderValueString("LabelBadgeLockedStatus");
                }
                else
                {
                    item.BadgeIcon   = "starfilledy.png";
                    item.BadgeStatus = trans.GetProviderValueString("LabelBadgeUNLockedStatus");
                }
            }
        }
        public void SetTabs(TabControl ctrl)
        {
            string _Home, _JobPosts, _Programs, _Services;

            if (_ctrl != null)
            {
                return;
            }
            _ctrl = ctrl;
            _ctrl.SetSearchVisible(true);

            TranslateExtension tran = new TranslateExtension();

            try
            {
                _Home     = App.Translation.employer.homelblhome;
                _JobPosts = App.Translation.employer.homelbljobposts;
                _Programs = App.Translation.employer.homelblprograms;
                _Services = App.Translation.employer.homelblservices;
            }
            catch (Exception ex)
            {
                _Home     = tran.GetProviderValueString("MenuHome");
                _JobPosts = tran.GetProviderValueString("MenuJobPosts");
                _Programs = tran.GetProviderValueString("MenuPrograms");
                _Services = tran.GetProviderValueString("MenuServices");
            }
            if (GlobalSetting.IsEnglish)
            {
                _ctrl.SetTabText(_Home, _JobPosts, _Programs, _Services);
            }
            else
            {
                _ctrl.SetTabText(_Services, _Programs, _JobPosts, _Home);
            }
            _ctrl.SetTabVisble(1);
        }
        private async void LoadData()
        {
            // load the version and terms data here into vars

            TranslateExtension tran = new TranslateExtension();
            var ver = tran.GetProviderValueString("LabelAboutVersionText");

            ApiService serv  = new ApiService();
            var        verNo = await serv.GetAppVersionAsync();

            if (CultureCode == "ar")
            {
                AppVersion = $"{verNo} {ver}";
            }
            else
            {
                AppVersion = $"{ver} {verNo}";
            }

            // pull terms.. maybe from db or api or resources
            TermsText = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum";
        }
        public CompanyDetailsPageViewModel(INavigationService navigationService, IPageDialogService dialog) : base(navigationService, dialog)
        {
            SetDefaultColumn(0, 1);
            CallCommand   = new DelegateCommand <string>(CallNumber);
            ManageCommand = new DelegateCommand(ManageCompany);

            DbAccessor db = new DbAccessor();
            //retrieve the company details from the db
            var myCompanyFromDb = db.GetTableItems <MyCompany>();

            var MyCompanyDetails = myCompanyFromDb[0];

            CompanyInfo = myCompanyFromDb[0];
            // var lattitude = CompanyInfo.contactPersonGeocodeLattitude;
            // var longitude = CompanyInfo.contactPersonGeocodeLongitude;



            TranslateExtension tran = new TranslateExtension();



            CompanyDescription = App.Translation != null ? App.Translation.employer.mycompanylbldesc : tran.GetProviderValueString("CompanyDescriptionLabel");
            //CompanyDescription = tran.GetProviderValueString("CompanyDescriptionLabel");

            CompanyInformation = App.Translation != null ? App.Translation.employer.mycompanylblcompinfo : tran.GetProviderValueString("CompanyInformationLabel");
            //CompanyInformation = tran.GetProviderValueString("CompanyInformationLabel");

            CompanyContact = App.Translation != null ? App.Translation.employer.mycompanylblcontactdet : tran.GetProviderValueString("ContactDetailsLabel");
            //CompanyContact = tran.GetProviderValueString("ContactDetailsLabel");

            CompanyLocation = App.Translation != null ? App.Translation.employer.mycompanylbllocation : tran.GetProviderValueString("LocationLabel");
            //CompanyLocation = tran.GetProviderValueString("LocationLabel");

            ManageUserButton = App.Translation != null ? App.Translation.employer.mycompanybtnmanageusers : tran.GetProviderValueString("ManageCompanyUsersButton");
            //ManageUserButton = tran.GetProviderValueString("ManageCompanyUsersButton");

            Namelabell = App.Translation != null ? App.Translation.employer.mycompanylblname : tran.GetProviderValueString("Namelabel");
            //Namelabell = tran.GetProviderValueString("Name");

            PositionLabell = App.Translation != null ? App.Translation.employer.mycompanylblposition : tran.GetProviderValueString("PositionLabel");
            //PositionLabell = tran.GetProviderValueString("Position");


            MobilePhoneLabell = App.Translation != null ? App.Translation.employer.mycompanylblmobile : tran.GetProviderValueString("MobilePhoneLabel");
            //MobilePhoneLabell = tran.GetProviderValueString("Mobile Phone");


            TelephoneNumberLabell = App.Translation != null ? App.Translation.employer.mycompanylbltelephone : tran.GetProviderValueString("TelephoneNumberLabel");
            //TelephoneNumberLabell = tran.GetProviderValueString("Telephone Number");


            EmailAddressLabell = App.Translation != null ? App.Translation.employer.mycompanylblemail : tran.GetProviderValueString("EmailAddressLabel");
            //EmailAddressLabell = tran.GetProviderValueString("Email Address");



            IndustryLabell = App.Translation != null ? App.Translation.employer.mycompanylblindustry : tran.GetProviderValueString("IndustryLabel");
            //IndustryLabell = tran.GetProviderValueString("Industry");


            CompanySizeLabell = App.Translation != null ? App.Translation.employer.mycompanylblcompsize : tran.GetProviderValueString("CompanySizeLabel");
            //CompanySizeLabell = tran.GetProviderValueString("Company Size");


            PreferredLanguageLabell = App.Translation != null ? App.Translation.employer.mycompanylblpreferlang : tran.GetProviderValueString("PreferredLanguageLabel");
            //PreferredLanguageLabell = tran.GetProviderValueString("Preferred Language");


            ProfileIDLabell = App.Translation != null ? App.Translation.employer.mycompanylblprofileid : tran.GetProviderValueString("ProfileIDLabel");
            //ProfileIDLabell = tran.GetProviderValueString("Profile ID");
        }
        public ProgramDetailsPageViewModel(INavigationService navigationService, IPageDialogService dialog) : base(navigationService, dialog)
        {
            IsBusy = false;

            _nav    = navigationService;
            _dialog = dialog;

            RegServiceCommand = new DelegateCommand(ProcessRegServiceCommand);

            ProgImage   = "Saned.png";
            ProgImgName = "Saned";

            IsBenefitVisible       = true;
            IsBeneficiariesVisible = true;
            HowToRegister          = true;
            ProgramIntroduction    = true;
            WhocanBenefit          = true;



            TranslateExtension tran = new TranslateExtension();



            ProgramsIntroduction = App.Translation != null ? App.Translation.employer.programdetlbldesc : tran.GetProviderValueString("LabelProgramsIntroduction");
            //ProgramsIntroduction = tran.GetProviderValueString("LabelProgramsIntroduction");

            ProgramBenefits = App.Translation != null ? App.Translation.employer.programdetlblwhythisprogram : tran.GetProviderValueString("LabelProgramsBenefitsText");
            //ProgramBenefits = tran.GetProviderValueString("LabelProgramsBenefitsText");

            ProgramRecquirement = App.Translation != null ? App.Translation.employer.programdetlblprogrequirements : tran.GetProviderValueString("LabelProgramsBeneficiariesText");
            //ProgramRecquirement = tran.GetProviderValueString("LabelProgramsBeneficiariesText");

            ProgramWhoBenefits = App.Translation != null ? App.Translation.employer.programdetlblwhocanbenefit : tran.GetProviderValueString("LabelProgramsWhocanBenefitText");
            //ProgramWhoBenefits = tran.GetProviderValueString("LabelProgramsWhocanBenefitText");


            ProgramHowToRegister = App.Translation != null ? App.Translation.employer.programdetlblhowtoregister : tran.GetProviderValueString("LabelProgramsHowToRegisterText");
            //ProgramHowToRegister = tran.GetProviderValueString("LabelProgramsHowToRegisterText");
        }
        void LoadContentViews()
        {
            Device.BeginInvokeOnMainThread(async() =>
            {
                var responseAnnouncements = await Web.AWHttpClient.Instance.GetAnnouncements();

                if (responseAnnouncements.Data != null && responseAnnouncements.Data.Announcements.Data.Count > 0)
                {
                    HomePageSource = new ObservableCollection <Announcement>(responseAnnouncements.Data.Announcements.Data);
                }
                //ApiService apiServ = new ApiService();

                if (responseAnnouncements.Data != null && responseAnnouncements.Data.Featured.Count > 0)
                {
                    initialPostion = "0";
                    SwipeSource    = new ObservableCollection <FeaturedAnnouncement>(responseAnnouncements.Data.Featured);
                    if (GlobalSetting.IsArabic)
                    {
                        SwipeSource    = new ObservableCollection <FeaturedAnnouncement>(SwipeSource.Reverse());
                        initialPostion = (responseAnnouncements.Data.Featured.Count() - 1).ToString();
                    }
                }

                HomeContent = new HomeHomeContent();
                SetHome();
            });

            Task.Run(async() =>
            {
                var jobListRoot = await AWHttpClient.Instance.GetJobsList();
                JobPageSource   = new ObservableCollection <Job>(jobListRoot.Result.jobsListObject.jobsList);


                TranslateExtension tran = new TranslateExtension();

                // mod the text here for translations
                foreach (var t in JobPageSource)
                {
                    //t.JobStatusText = tran.GetProviderValueString("LabelJobStatus");
                    //t.PostedText = tran.GetProviderValueString("LabelJobPosted");

                    //if (string.IsNullOrEmpty(t.CompanyLogo)) t.CompanyLogo = "jobcompanyicon.png";
                }

                JobContent = new HomeJobPostsContent();
            });

            Task.Run(async() =>
            {
                ApiService apiServ = new ApiService();
                ServicesPageSource = await apiServ.GetEmployerServicesAsync(0);                 // add employer id if logged on
                ServicesContent    = new HomeServicesContent();
            });

            Task.Run(async() =>
            {
                // get data
                ApiService apiServ = new ApiService();
                //ProgramsPageSource = await apiServ.GetCurrentProgramsAsync();
                //           try
                //           {
                //var programsList = await AWHttpClient.Instance.GetPrograms();
                //    ProgramsPageSource = new ObservableCollection<Program>(programsList.Data.Programs);

                //}
                //catch (Exception ex)
                //{

                //}

                var programsList = await Web.AWHttpClient.Instance.GetPrograms();

                if (programsList.Data != null && programsList.Data.Programs.Count > 0)
                {
                    ProgramsPageSource = new ObservableCollection <Program>(programsList.Data.Programs);
                }



                TranslateExtension tran = new TranslateExtension();

                string progStatusLabel = tran.GetProviderValueString("LabelProgramStatusText");
                // setup Program Status:
                foreach (var item in ProgramsPageSource)
                {
                    //item.StatusLabelText = progStatusLabel;
                    item.StatusText = $"{progStatusLabel} {item.StatusText} ";
                }



                ProgramsContent = new HomeProgramsContent();
            });
        }
Example #20
0
        public SettingsPageViewModel(INavigationService navigationService, IPageDialogService dialog) : base(navigationService, dialog)
        {
            LogoutCommand        = new DelegateCommand(Logout);
            ResetPasswordCommand = new DelegateCommand(ResetPassword);
            ComplaintsCommand    = new DelegateCommand(ComplaintsNavigate);
            AboutCommand         = new DelegateCommand(About);


            TranslateExtension tran = new TranslateExtension();



            textlanguage = App.Translation != null ? App.Translation.employer.settingslbltxtlang : tran.GetProviderValueString("TextLanguage");
            //textlanguage = tran.GetProviderValueString("TextLanguage");

            textsettingsresetpw = App.Translation != null ? App.Translation.employer.settingslblresetpwd : tran.GetProviderValueString("TextSettingsResetPassword");
            //textsettingsresetpw = tran.GetProviderValueString("TextSettingsResetPassword");

            textcomplaints = App.Translation != null ? App.Translation.employer.settingslblcomplaints : tran.GetProviderValueString("TextComplaints");
            //textcomplaints = tran.GetProviderValueString("TextComplaints");

            textaboutpagetitle = App.Translation != null ? App.Translation.employer.settingslblpagetitle : tran.GetProviderValueString("TextAboutPageTitle");
            //textaboutpagetitle = tran.GetProviderValueString("TextAboutPageTitle");

            settingslogoutbtn = App.Translation != null ? App.Translation.employer.settingslbllogoutbtn : tran.GetProviderValueString("LabelButtonLogOutText");
            //settingslogoutbtn = tran.GetProviderValueString("LabelButtonLogOutText");

            settingspagetitle = App.Translation != null ? App.Translation.employer.settingslbltitle : tran.GetProviderValueString("TextSettingPageTitle");
            //settingspagetitle = tran.GetProviderValueString("TextSettingPageTitle");
        }
Example #21
0
        public ContactUsPageViewModel(INavigationService navigationService, IPageDialogService dialog) : base(navigationService, dialog)
        {
            //ContactUsText = "If you have any question please call us on\nLine Available from sunday to Thursday\n\nYou can also email for any technical questions.";

            TranslateExtension tran = new TranslateExtension();


            try
            {
                //PhonecontactLabel = tran.GetProviderValueString("PhoneLabel");

                PhonecontactLabel = App.Translation != null ? App.Translation.employer.contactuslblphone : tran.GetProviderValueString("PhoneLabel");


                MailcontactLabel = App.Translation != null ? App.Translation.employer.contactuslblmail : tran.GetProviderValueString("MailLabel");
                //MailcontactLabel = tran.GetProviderValueString("MailLabel");

                ContactLabelText = App.Translation != null ? App.Translation.employer.contactuslbltext : tran.GetProviderValueString("ContactUsLabel");
                //ContactLabelText = tran.GetProviderValueString("ContactUsLabel");

                ContactPageTitle = App.Translation != null ? App.Translation.employer.contactuslbltitle : tran.GetProviderValueString("TextContactPageTitle");
                //ContactPageTitle = tran.GetProviderValueString("TextContactPageTitle");
            }
            catch (Exception ex)
            {
            }
        }