Exemplo n.º 1
0
        private void LoadUsers()
        {
            GatewayUserModel.Clear();
            DefaultUserText.Text = "";

            var list = GatewayClient.LoadUsers();

            foreach (var item in list)
            {
                GatewayUserModel.Add(item);
            }
            if (list.Count > 0)
            {
                GatewayPivot.SelectedIndex = 0;
            }
            if (GatewayClient.GetDefaultUser() != null)
            {
                DefaultUserText.Text = GatewayClient.GetDefaultUser().Username;
            }
        }