private void ConsultarUnidade(object o, EventArgs e) { Cadastrar.FrmUnidadeVenda fcu = new Cadastrar.FrmUnidadeVenda(); fcu.txtNome.ReadOnly = true; fcu.txtAbreviacao.ReadOnly = true; fcu.txtNome.Text = Convert.ToString(dataGridView1.CurrentRow.Cells[1].Value); fcu.txtAbreviacao.Text = Convert.ToString(dataGridView1.CurrentRow.Cells[2].Value); fcu.label5.Text = "Consultando Unidade"; fcu.btnCadastrar.Visible = false; fcu.ShowDialog(); }
private void CadastrarUnidade(object o, EventArgs e) { Telas.Cadastrar.FrmUnidadeVenda f = new Cadastrar.FrmUnidadeVenda(); f.ShowDialog(); }