public UsbServer(Settings _settings) { LocalSettings = _settings; Id = "usb"; DisplayName = "Usb"; Name = GlobeTrotter.SynchroManager.ServerName.Usb; ClientId = ""; CallbackUrl = ""; State = ""; HasSecret = false; HasExpiryDate = false; LOCAL_OAUTH_TOKEN = "USB_OAUTH_TOKEN"; LOCAL_USER_NAME = "USB_USER_NAME"; LOCAL_OAUTH_TOKEN_REFRESH = "USB_OAUTH_TOKEN_REFRESH"; Provider = new WebAccountProvider(Id, DisplayName, new Uri("ms-appx:///icons/USB-Drive-icon.png")); _selector = new DeviceSelector(Res); InitializeServerAccount(); }
public ViewHome() { this.InitializeComponent(); navigationHelper = new NavigationHelper(this); navigationHelper.LoadState += navigationHelper_LoadState; navigationHelper.SaveState += navigationHelper_SaveState; _res = ResourceLoader.GetForCurrentView(); btnAddTrip.Label = _res.GetString("AddTrip"); btnClearTrip.Label = _res.GetString("Reinitialize"); btnMessage.Label = _res.GetString("Message"); btnSettings.Label = _res.GetString("Settings"); btnCamera.Label = _res.GetString("ImportCamera"); pageTitle.Text = _res.GetString("AppName"); imageTrash.Source = new BitmapImage(new Uri(this.BaseUri, "Icons/trash_empty.png")); imageTrash.Visibility = Visibility.Collapsed; gridDisp.ItemsSource = _listTripDesc; gridFlag.ItemsSource = _listFlags; _listCountries = new List <string>(); _selector = new DeviceSelector(_res); _flyoutCountry = new Flyout(); _panelCountry = new StackPanel(); _txtCountry = new TextBlock(); _btnCountry = new Button(); _btnCountry.Content = _res.GetString("ViewMap"); _btnCountry.Click += _btnCountry_Click; _panelCountry.Children.Add(_txtCountry); _panelCountry.Children.Add(_btnCountry); _flyoutCountry.Content = _panelCountry; //GooglePlusServer.CreateXml(); }