Exemple #1
0
 private void btnHabilitar_Click(object sender, RoutedEventArgs e)
 {
     if (AppBehavior.ProxyEnabled())
     {
         AppBehavior.DisableProxy();
         btnHabilitar.Content = "Habilitar";
     }
     else
     {
         AppBehavior.SetProxy(cbUrlLista.Items[this.cbUrlLista.SelectedIndex].ToString());
         btnHabilitar.Content = "Desabilitar";
     }
 }
Exemple #2
0
        private void Button_Load(object sender, RoutedEventArgs e)
        {
            btnHabilitar.Content = AppBehavior.ProxyEnabled() ? "Desabilitar" : "Habilitar";

            if (AppBehavior.CheckCertificate())
            {
                btnInstalar.Content = "Reinstalar Certificado";
            }
            else
            {
                btnInstalar.Content = "Instalar Certificado";
            }
        }