示例#1
0
        private void DtgPessoa_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            FormCadPessoa Pessoa = new FormCadPessoa();

            Pessoa.txtId.Text   = this.DtgPessoa.CurrentRow.Cells[0].Value.ToString();
            Pessoa.txtNome.Text = this.DtgPessoa.CurrentRow.Cells[1].Value.ToString();
            Pessoa.MskCPF.Text  = this.DtgPessoa.CurrentRow.Cells[2].Value.ToString();

            Pessoa.MskCelular.Text  = this.DtgPessoa.CurrentRow.Cells[4].Value.ToString();
            Pessoa.txtEndereco.Text = this.DtgPessoa.CurrentRow.Cells[6].Value.ToString();
            Pessoa.txtNumero.Text   = this.DtgPessoa.CurrentRow.Cells[7].Value.ToString();
            Pessoa.txtEstado.Text   = this.DtgPessoa.CurrentRow.Cells[8].Value.ToString();
            Pessoa.txtCidade.Text   = this.DtgPessoa.CurrentRow.Cells[9].Value.ToString();
            Pessoa.ShowDialog();
        }
示例#2
0
        private void btnCadastro_Click(object sender, EventArgs e)
        {
            FormCadPessoa Pessoa = new FormCadPessoa();

            Pessoa.ShowDialog();
        }