private void ConsultarCliente(Object o, EventArgs e)
        {
            try
            {
                Telas.Cadastrar.FrmCliente fcu = new Cadastrar.FrmCliente();
                fcu.label1.Text         = "Consultando o Cliente";
                fcu.txtNome.Text        = Convert.ToString(dataGridView1.CurrentRow.Cells[1].Value);
                fcu.txtData.Text        = Convert.ToString(dataGridView1.CurrentRow.Cells[2].Value);
                fcu.txtEndereco.Text    = Convert.ToString(dataGridView1.CurrentRow.Cells[3].Value);
                fcu.txtBairro.Text      = Convert.ToString(dataGridView1.CurrentRow.Cells[4].Value);
                fcu.txtCidade.Text      = Convert.ToString(dataGridView1.CurrentRow.Cells[5].Value);
                fcu.txtComplemento.Text = Convert.ToString(dataGridView1.CurrentRow.Cells[6].Value);
                fcu.txtNumero.Text      = Convert.ToString(dataGridView1.CurrentRow.Cells[7].Value);

                fcu.txtUF.Text  = Convert.ToString(dataGridView1.CurrentRow.Cells[8].Value);
                fcu.txtCEP.Text = Convert.ToString(dataGridView1.CurrentRow.Cells[9].Value);
                fcu.txtRg.Text  = Convert.ToString(dataGridView1.CurrentRow.Cells[10].Value);
                fcu.txtCPF.Text = Convert.ToString(dataGridView1.CurrentRow.Cells[11].Value);
                if (Convert.ToString(dataGridView1.CurrentRow.Cells[12].Value) == "f")
                {
                    fcu.rbFem.Checked  = true;
                    fcu.rbFem.Enabled  = false;
                    fcu.rbMasc.Enabled = false;
                }
                else
                {
                    fcu.rbMasc.Checked = true;
                    fcu.rbMasc.Enabled = false;
                    fcu.rbFem.Enabled  = false;
                }
                fcu.txtTelefone.Text = Convert.ToString(dataGridView1.CurrentRow.Cells[13].Value);
                fcu.txtEmail.Text    = Convert.ToString(dataGridView1.CurrentRow.Cells[14].Value);

                fcu.btnAceitar.Visible      = false;
                fcu.txtNome.ReadOnly        = true;
                fcu.txtData.ReadOnly        = true;
                fcu.txtEndereco.ReadOnly    = true;
                fcu.txtBairro.ReadOnly      = true;
                fcu.txtCidade.ReadOnly      = true;
                fcu.txtComplemento.ReadOnly = true;
                fcu.txtRg.ReadOnly          = true;
                fcu.txtUF.ReadOnly          = true;
                fcu.txtCPF.ReadOnly         = true;
                fcu.txtTelefone.ReadOnly    = true;
                fcu.txtEmail.ReadOnly       = true;
                fcu.txtCEP.ReadOnly         = true;
                fcu.txtNumero.ReadOnly      = true;



                fcu.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                //throw;
            }
        }
 private void pictureBox6_Click(object sender, EventArgs e)
 {
     Cadastrar.FrmCliente f = new Cadastrar.FrmCliente();
     f.ShowDialog();
 }
 private void button1_Click(object sender, EventArgs e)
 {
     Cadastrar.FrmCliente f = new Cadastrar.FrmCliente();
     f.ShowDialog();
 }