public DevicesPage() { InitializeComponent(); Title = L10n.Localize("DevicesTitle"); str = new StateActionResources(); devicesCollection = new ObservableCollection <Plug>(); connection = WebSocketFactory.Create(); }
protected override async void OnAppearing() { var ur = new UserResources(); var user = await ur.GetUserAsync(); EmailLabel.Text = user.Email; ProviderLabel.Text = user.IdentityProvider; UserLabel.Text = user.Name; st = new StateActionResources(); var text = await st.GetStateAction(); if (string.IsNullOrWhiteSpace(text)) { StateGrid.IsVisible = false; } else { StateGrid.IsVisible = true; StateLabel.Text = text; } }