Example #1
0
 private void RefreshTick()
 {
     if (cUrl != url)
     {
         if (cUrl == "refresh")
         {
             ScreenView.Refresh();
             lock (cUrl) cUrl = url;
         }
         else
         {
             ScreenView.Navigate(new Uri(cUrl));
             localSettings.Values["url"] = cUrl;
             lock (cUrl) url = cUrl;
         }
     }
 }
Example #2
0
        public MainPage()
        {
            InitializeComponent();

            if (localSettings.Values.ContainsKey("url"))
            {
                cUrl = localSettings.Values["url"].ToString();
            }
            else
            {
                localSettings.Values["url"] = cUrl;
            }

            ScreenView.Navigate(new Uri(cUrl));
            ScreenView.PermissionRequested += ScreenView_PermissionRequested;

            Debug.WriteLine("Browser done, server next");

            StartRefreshTimer();
            SetupServer();
        }