private void btnAnadirSolar_Click(object sender, EventArgs e)
        {
            try
            {
                BuscarSolar b      = new BuscarSolar();
                E_Solares   eSolar = new E_Solares();

                b.formCotizacion = true;
                b.ShowDialog();

                if (b.formCotizacion)
                {
                    dgvSolares.Rows.Add();
                    dgvSolares.Rows[count].Cells[0].Value  = IdSolar;
                    dgvSolares.Rows[count].Cells[1].Value  = NumCerTit;
                    dgvSolares.Rows[count].Cells[2].Value  = CantMetros;
                    dgvSolares.Rows[count].Cells[3].Value  = Numero;
                    dgvSolares.Rows[count].Cells[4].Value  = Coor;
                    dgvSolares.Rows[count].Cells[5].Value  = Colind;
                    dgvSolares.Rows[count].Cells[6].Value  = IdSolarInfo;
                    dgvSolares.Rows[count].Cells[7].Value  = DescripAdd;
                    dgvSolares.Rows[count].Cells[8].Value  = InformProp;
                    dgvSolares.Rows[count].Cells[9].Value  = ImageTitulo;
                    dgvSolares.Rows[count].Cells[10].Value = Precio;
                    dgvSolares.Rows[count].Cells[11].Value = Estado;
                    dgvSolares.Rows[count].Cells[12].Value = FechaRegistro;
                    count++;
                }
            }
            catch (Exception ex) { MessageBox.Show(ex.Message); }
        }
Esempio n. 2
0
        private void btnBuscarSolar_Click(object sender, EventArgs e)
        {
            BuscarSolar B = new BuscarSolar();

            B.formFacturacion = true;
            B.ShowDialog(this);


            ListViewItem item = new ListViewItem(IdSolar);

            item.SubItems.Add(NumCerTit);
            item.SubItems.Add(Coor);
            item.SubItems.Add(Numero);
            item.SubItems.Add(Precio);
            lstvAgregarSolar.Items.Add(item);

            precio           = SumPrecio();
            txtTotal.Text    = precio.ToString();
            txtSubtotal.Text = precio.ToString();
        }
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            BuscarSolar B = new BuscarSolar();

            B.formMantenimientoS = true;
            B.ShowDialog();

            if (B.formMantenimientoS)
            {
                txtIdSolar.Text       = IdSolar;
                txtNumero.Text        = Numero;
                txtCoordenadas.Text   = Coor;
                txtNumCertTitulo.Text = NumCerTit;
                txtDescAddTitulo.Text = DescripAdd;
                txtMetros.Text        = CantMetros;
                txtPropietario.Text   = InformProp;
                txtColindSolar.Text   = Colind;
                txtPrecio.Text        = Precio;
                txtEstado.Text        = Estado;

                MemoryStream ms = new MemoryStream(ImageTitulo);
                picImagenTitulo.Image = Image.FromStream(ms);
            }
        }