Ejemplo n.º 1
0
        private void cmdIncioSecion_Click(object sender, EventArgs e)
        {
            string mail = txtUsuario.Text;
            string contraseña = txtContraseña.Text;

            WSpvt.PVT ws = new WSpvt.PVT();
            String resp = ws.login(mail, contraseña);

            MessageBox.Show(resp);
        }
Ejemplo n.º 2
0
        private void cbManzana_SelectedIndexChanged(object sender, EventArgs e)
        {
            cbLotes.Items.Clear();
            WSpvt.PVT ws = new WSpvt.PVT();

               // string idPredio = ws.getIdPredio((string)cbPredio.SelectedItem);
               //string idManzana = ws.getIdManzana((string)cbManzana.SelectedItem, idPredio);
            string respuestaCargaLote = ws.cargaLotes(splitIdManzana[cbManzana.SelectedIndex]);

            string[] splitCargaLotes = respuestaCargaLote.Split(new char[] { ',' });
            int tamaño = splitCargaLotes.Length;
            foreach (string cargaLotes in splitCargaLotes) {

            cbLotes.Items.Add(cargaLotes);
            }
        }