Esempio n. 1
0
        public AboutViewModel()
        {
            Title = "About";

            HomeWifi = App.BackendUrl.Equals("http://192.168.100.200");

            OpenWebCommand = new Command(() => Device.OpenUri(new Uri(App.BackendUrl)));
            TurnSwift      = new Command(() => CloudDataStore.TurnServerOn());
        }
 void Handle_Toggled(object sender, ToggledEventArgs e)
 {
     if (e.Value)
     {
         App.BackendUrl = "http://192.168.100.200";
     }
     else
     {
         App.BackendUrl = "https://androidrescuer.cf";
     }
     CloudDataStore.Refresh();
 }