protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            employee.ItemsSource = sharedInfo.employeeDetails;
            supervisorName.Text = sharedInfo.supervisorDetails.FirstName + "    " + sharedInfo.supervisorDetails.LastName;
            AppSettings settings = new AppSettings();
            EmployeeCheckInViewModel viewModel = new EmployeeCheckInViewModel();

            //if (!settings.checkNavSettings())
            //{
            //    string empFN = viewModel.getFinalValue();

            //}
           
        }
        public void retrieveEmployeeDetails()
        {
            appSettings = new AppSettings();

            this.employeeDetails = getEmployeeDetails.DataElements(appSettings.retrieveRegistrationSettings());
        }
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            AppSettings appSettings = new AppSettings();

            if (appSettings.verifyRegistrationSettings())
            {
                sharedInformation.retrieveEmployeeDetails();
                sharedInformation.employeeData();

                GetSupervisorDetails(sharedInformation.empData.EmpFn);

                sharedInformation.jsn = await connectHttp(phpAddress3, sharedInformation.empData.EmpFn, null);

                NavigationService.Navigate(new Uri("/UserPage.xaml", UriKind.RelativeOrAbsolute));

            }
        }
 private void supervisorPage(object sender, System.Windows.Input.GestureEventArgs e)
 {
     AppSettings settings = new AppSettings();
     if(settings.retrieveNavigationSettings() == null)
     {
         NavigationService.Navigate(new Uri("/SupervisorPage.xaml", UriKind.RelativeOrAbsolute));
     }
     else
     {
         NavigationService.Navigate(new Uri(settings.retrieveNavigationSettings(), UriKind.RelativeOrAbsolute));
     }
 }
        void PushChannel_ShellToastNotificationReceived(object sender, NotificationEventArgs e)
        {
            StringBuilder message = new StringBuilder();
            string relativeUri = string.Empty;

            message.AppendFormat("Received Toast {0}:\n", DateTime.Now.ToShortTimeString());

            // Parse out the information that was part of the message.
            foreach (string key in e.Collection.Keys)
            {
                //if (key != "wp:Param")
                message.AppendFormat("{0}\n",e.Collection[key]);

                if (string.Compare(
                    key,
                    "wp:Param",
                    System.Globalization.CultureInfo.InvariantCulture,
                    System.Globalization.CompareOptions.IgnoreCase) == 0)
                {
                    relativeUri = e.Collection[key];
                    AppSettings settings = new AppSettings();
                    settings.storeNavigationSettings(relativeUri); 
                }

            }

            
            // Display a dialog of all the fields in the toast.
            Dispatcher.BeginInvoke(() => MessageBox.Show(message.ToString()));
            

            
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
        }