Exemplo n.º 1
0
        private void AbrirVentana(int vieneDe, string cuerpo)
        {
            switch (vieneDe)
            {
            case 1:
                var ctv = new CotizacionTitulo(cuerpo);
                ctv.ShowDialog();
                break;

            case 2:
                var pcv = new PanelCotizacion(cuerpo);
                pcv.ShowDialog();
                break;

            case 3:
                var portfolio = new Portafolio(cuerpo);
                portfolio.ShowDialog();
                break;

            case 4:
                var miCuenta = new MiCuenta(cuerpo);
                miCuenta.ShowDialog();
                break;
            }
        }
Exemplo n.º 2
0
        private async void Button_Click(object sender, RoutedEventArgs e)
        {
            var btn   = (Button)sender;
            var id    = btn.Content.ToString();
            var uri   = IOLWindow._apiUrl + "/api/Titulos/CotizacionPorId?id=" + id;
            var datos = await EnviarPeticionGet(uri, null, _bearerToken);

            var ct = new CotizacionTitulo(datos.Cuerpo);

            ct.ShowDialog();
        }
Exemplo n.º 3
0
        private async void Cotizacion_Click(object sender, RoutedEventArgs e)
        {
            //Cotizacion.IsEnabled = false;
            txtEndPoint.Text = "Ejemplo de Url " + _apiUrl + "/api/Titulos/Cotizacion?simbolo=ALUA&Mercado=BCBA";
            //vieneDe = 1;
            //var datos = await EnviarPeticionGet(txtEndPoint.Text, null, txtBearerToken.Text);
            //AbrirVentana(vieneDe, datos.Cuerpo);
            //Cotizacion.IsEnabled = true;
            var ctv = new CotizacionTitulo();

            ctv.ShowDialog();
        }