예제 #1
0
 public DevicesPage()
 {
     InitializeComponent();
     Title             = L10n.Localize("DevicesTitle");
     str               = new StateActionResources();
     devicesCollection = new ObservableCollection <Plug>();
     connection        = WebSocketFactory.Create();
 }
예제 #2
0
        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;
            }
        }