Example #1
0
        private void pesquisaDeClientesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormPesquisaCliente frm = new FormPesquisaCliente();

            this.Hide();
            frm.ShowDialog();
            this.Show();
        }
Example #2
0
        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;
            }
        }