コード例 #1
0
        private void PesquisaFornecedorItem_Click(object sender, EventArgs e)
        {
            FormPesquisaFornecedor frm = new FormPesquisaFornecedor();

            this.Hide();
            frm.ShowDialog();
            this.Show();
        }
コード例 #2
0
        private void btnPesquisa_Click(object sender, EventArgs e)
        {
            FormPesquisaFornecedor frm = new FormPesquisaFornecedor();

            frm.ShowDialog();
            if (frm.fornecedorSelecionado != null)
            {
                Fornecedor f = frm.fornecedorSelecionado;
                txtID.Text        = f.ID.ToString();
                txtContato.Text   = f.NomeContato;
                txtRSocial.Text   = f.RazaoSocial;
                txtEmail.Text     = f.Email;
                mtxtCnpj.Text     = f.CNPJ;
                mtxtTelefone.Text = f.Telefone;
            }
        }