コード例 #1
0
        private void RechazarDocumentoBtn_Click(object sender, EventArgs e)
        {
            string nombre = "";

            foreach (DataGridViewRow row in DocumentosView.SelectedRows)
            {
                nombre = row.Cells["NombreDoc"].Value.ToString();
            }
            cnDoc.rechazarDocumento(nombre);
            SqlDataReader dr     = cnDoc.rechazarDocumentoVista(nombre);
            string        codigo = "";

            while (dr.Read() == true)
            {
                codigo = dr.GetString(0);
            }
            archivos.recharArchivo(nombre);
            MessageBox.Show("Operaci+on Exitosa");
        }