private void ServerIsAlive()
        {
            var ipServidor = txtIP.Text;

            var address = new EndpointAddress("http://" + ipServidor + "/GarcOnService");

            var bind = new BasicHttpBinding();

            bind.Security.Mode = BasicHttpSecurityMode.TransportCredentialOnly;
            bind.Security.Transport.ClientCredentialType = HttpClientCredentialType.Basic;

            var garconClient = new GarcOnClient(bind, address);

            garconClient.ClientCredentials.UserName.UserName = "******";
            garconClient.ClientCredentials.UserName.Password = "******";
            garconClient.GetDataCompleted += GarconClient_GetDataCompleted;
            garconClient.GetDataAsync();
        }
        private async void GetData()
        {
            var ipServidor = await SecureStorage.GetAsync("ip_servidor");

            var user     = txtUser.Text;
            var password = txtPassword.Text;

            var address = new EndpointAddress("http://" + ipServidor + "/GarcOnService");

            var bind = new BasicHttpBinding();

            bind.Security.Mode = BasicHttpSecurityMode.TransportCredentialOnly;
            bind.Security.Transport.ClientCredentialType = HttpClientCredentialType.Basic;

            var garconClient = new GarcOnClient(bind, address);

            garconClient.ClientCredentials.UserName.UserName = user;
            garconClient.ClientCredentials.UserName.Password = password;
            garconClient.GetDataCompleted += GarconClient_GetDataCompleted;
            garconClient.GetDataAsync();
        }