private void pesquisaDeClientesToolStripMenuItem_Click(object sender, EventArgs e) { FormPesquisaCliente frm = new FormPesquisaCliente(); this.Hide(); frm.ShowDialog(); this.Show(); }
private void btnCliente_Click(object sender, EventArgs e) { FormPesquisaCliente frm = new FormPesquisaCliente(); frm.ShowDialog(); if (frm.ClienteSelecionadoNaGrid != null) { txtIDCliente.Text = frm.ClienteSelecionadoNaGrid.ID.ToString(); txtNomeCliente.Text = frm.ClienteSelecionadoNaGrid.Nome; } }