Buscar

Cópia de PIM VIII CODIFICAÇÃO EM C ACESSO A DE BANCO DE DADOS

Faça como milhares de estudantes: teste grátis o Passei Direto

Esse e outros conteúdos desbloqueados

16 milhões de materiais de várias disciplinas

Impressão de materiais

Agora você pode testar o

Passei Direto grátis

Você também pode ser Premium ajudando estudantes

Faça como milhares de estudantes: teste grátis o Passei Direto

Esse e outros conteúdos desbloqueados

16 milhões de materiais de várias disciplinas

Impressão de materiais

Agora você pode testar o

Passei Direto grátis

Você também pode ser Premium ajudando estudantes

Faça como milhares de estudantes: teste grátis o Passei Direto

Esse e outros conteúdos desbloqueados

16 milhões de materiais de várias disciplinas

Impressão de materiais

Agora você pode testar o

Passei Direto grátis

Você também pode ser Premium ajudando estudantes
Você viu 3, do total de 78 páginas

Faça como milhares de estudantes: teste grátis o Passei Direto

Esse e outros conteúdos desbloqueados

16 milhões de materiais de várias disciplinas

Impressão de materiais

Agora você pode testar o

Passei Direto grátis

Você também pode ser Premium ajudando estudantes

Faça como milhares de estudantes: teste grátis o Passei Direto

Esse e outros conteúdos desbloqueados

16 milhões de materiais de várias disciplinas

Impressão de materiais

Agora você pode testar o

Passei Direto grátis

Você também pode ser Premium ajudando estudantes

Faça como milhares de estudantes: teste grátis o Passei Direto

Esse e outros conteúdos desbloqueados

16 milhões de materiais de várias disciplinas

Impressão de materiais

Agora você pode testar o

Passei Direto grátis

Você também pode ser Premium ajudando estudantes
Você viu 6, do total de 78 páginas

Faça como milhares de estudantes: teste grátis o Passei Direto

Esse e outros conteúdos desbloqueados

16 milhões de materiais de várias disciplinas

Impressão de materiais

Agora você pode testar o

Passei Direto grátis

Você também pode ser Premium ajudando estudantes

Faça como milhares de estudantes: teste grátis o Passei Direto

Esse e outros conteúdos desbloqueados

16 milhões de materiais de várias disciplinas

Impressão de materiais

Agora você pode testar o

Passei Direto grátis

Você também pode ser Premium ajudando estudantes

Faça como milhares de estudantes: teste grátis o Passei Direto

Esse e outros conteúdos desbloqueados

16 milhões de materiais de várias disciplinas

Impressão de materiais

Agora você pode testar o

Passei Direto grátis

Você também pode ser Premium ajudando estudantes
Você viu 9, do total de 78 páginas

Faça como milhares de estudantes: teste grátis o Passei Direto

Esse e outros conteúdos desbloqueados

16 milhões de materiais de várias disciplinas

Impressão de materiais

Agora você pode testar o

Passei Direto grátis

Você também pode ser Premium ajudando estudantes

Prévia do material em texto

UNIP EaD
Projeto Integrado Multidisciplinar VIII
Curso Superior de Tecnologia
PROJETO INTEGRADO MULTIDISCIPLINAR - PIM VIII 
MECANISMO DE ACESSO AO BANCO DE DADOS EM LINGUAGEM C#.
INTERFACE EM ASP.NET E PROTÓTIPO EM ANDROID STUDIO.
SÃO PAULO – SP
2021
UNIP EaD
Projeto Integrado Multidisciplinar VIII
Curso Superior de Tecnologia
PROJETO INTEGRADO MULTIDISCIPLINAR - PIM VIII 
MECANISMO DE ACESSO AO BANCO DE DADOS EM LINGUAGEM C#.
INTERFACE EM ASP.NET E PROTÓTIPO EM ANDROID STUDIO.
Alunos (as): Juliana Venâncio da Silva RA: 2076859
Sumaya Távora Costa RA: 2062137
Felipe Nodari Fogaça  RA: 2071276
Henry Brancaglioni Camargo da Silva RA:2072575
Curso: Tecnólogo em Análise e Desenvolvimento de Sistemas.
Semestre: 4º
SÃO PAULO – SP
2021
RESUMO
O presente trabalho desenvolveu um código em C# para conexão com o banco de dados de um sistema existente dentro da problemática apresentada no Manual do PIM VIII. O trabalho realizou a solução para o cadastro de pessoas, exclusão e alteração de dados com mecanismo de acesso a um trecho ao banco de dados. O trecho de código foi desenvolvido para um sistema existente apresentado ao contexto de desenvolvimento. Com base no conteúdo das disciplinas: Programação Orientada a Objetos II, Desenvolvimento de Software para a Internet e Tópicos Especiais de Programação Orientada a Objetos. Dentro do mesmo contexto apresentado foi criado um protótipo da interface em ASP.Net e Android, na qual possibilitou a interação do usuário com os dados modelados, possibilitando a interação para usuários de android e asp.net.Para total funcionamento do programa CRUD realizado, foram aplicados os conceitos de classes, hierarquia, poliformismo e conexão com o banco de dados, possibilitando a prática de utilização do ambiente de desenvolvimento integrado Microsoft Visual Community 2022. No desenvolvimento do protótipo em asp.net e Android foi utilizado todo o conhecimento em HTML e CSS e da IDE do Android Studio.
 
Palavras-chaves: C#, ASP NET, Android Studio, Android, Desenvolvimento, Modelagem, Banco de dados, Microsoft Visual Community 2022
ABSTRACT
The present work developed a code in C# to connect to the database of an existing system within the problem presented in the PIM VIII Manual. The work carried out the solution for registering people, deleting and altering data with a mechanism for accessing a portion of the database. The code snippet was developed for an existing system presented to the development context. Based on the contents of the disciplines: Object-Oriented Programming II, Software Development for the Internet and Special Topics in Object-Oriented Programming. Within the same context presented, a prototype of the interface in ASP.Net and Android was created, which allowed the user interaction with the modeled data, enabling the interaction for android and asp.net users.
For the full functioning of the CRUD program carried out, the concepts of classes, hierarchy, polymorphism and connection to the database were applied, enabling the practice of using the integrated development environment Microsoft Visual Community 2022. In the development of the prototype in ASP.net and Android has used all knowledge of HTML and CSS and of the Android Studio.
Keywords C#, ASP NET, Android Studio, Android, Developers, Model, Database, Microsoft Visual Community 2022
SUMÁRIO
INTRODUÇÃO	5
1.	MECANISMO DE ACESSO AO BANCO DE DADOS EM C#	6
1.1. Código em linguagem C#	6
1.1.1 Tela Principal do Sistema em C#	6
1.1.2 Cadastro	8
1.1.3 Validação	8
1.1.4 Excluir dados da classe Pessoa	8
1.1.5 Cadastro da classe Pessoa	28
2.	CONEXÃO COM O BANCO DE DADOS	32
2.1 Diagramas	32
2.2 Scripts de conexão como banco de dados em C#	33
3.	PROTÓTIPO DE INTERFACE GRÁFICA ASP.NET	33
3.1 Código em asp.net do layout	35
3.1.2 Código em aspx da tela de cadastro do sistema	35
3.1.3 Código de acesso a consulta de Pessoas no cadastro	38
4. PROTÓTIPO DE INTERFACE GRÁFICA EM ANDROID	39
4.1 O código XML do layout das Activities	41
CONCLUSÃO	50
REFERÊNCIAS	51
	
	
	
 INTRODUÇÃO
Já, a pesquisa de laboratório caracteriza-se como estudo experimental, no qual o investigador cria uma situação isolada em um ambiente artificial (FACHIN, 2006). 
O objetivo da pesquisa de laboratório depende daquilo que se propôs alcançar, deve ser previamente estabelecido e relacionado com determinada ciência ou ramo de estudo. As técnicas utilizadas também variam de acordo com o estudo a ser feito. Quatro aspectos devem 7 ser levados em consideração: objeto, objetivo, instrumental e técnicas (LAKATOS; MARCONI, 2010).
Criar uma citação indireta com esta citação direta.
Com o avanço da inserção da sociedade no mundo digital, temos uma crescente demanda por softwares e apps que auxiliam e facilitam a realização de determinadas tarefas. Nossa empresa de desenvolvimento de software recebeu a tarefa de desenvolver alguns aspectos de um sistema que já está em desenvolvimento.
Neste projeto criaremos um mecanismo de acesso a um banco de dados de um sistema desenvolvido em C#, assim como protótipos de interface gráfica com o usuário ASP.NET e ANDROID.
O projeto foi desenvolvido com base nas disciplinas cursadas neste módulo, como na de programação orientada a objetos, onde fizemos a codificação a classe e implementação da lógica da pessoaDAO conforme definida no sistema de classes de forma a realizar a lógica de acesso ao banco de dados, na disciplina de tópicos especiais de programação orientada a objetos elaboramos um protótipo de interface gráfica em Android usando o Android Studio, essa interface oferece ao usuário as funcionalidades CRUD para os dados relacionados ao trecho de banco de dados. 
 
1. MECANISMO DE ACESSO AO BANCO DE DADOS EM C#
No presente trabalho foi realizado um código em linguagem de alto nível, orientada a objeto C#. Segundo SAADE (2021), Desenvolvida pela Microsoft faz parte da plataforma .NET Framework, baseada C++ e possui muitos elementos de Pascal e Java.
1.1. Código em linguagem C#
1.1.1 Tela Principal do Sistema em C#
A seguir o projeto desenvolvido no Microsoft Visual Studio, utilizando a metodologia de arquitetura de software em MVC Model-View-Controller, utilizando as operações básicas de uma banco de dados, Create, Retrieve, Update e Delete, em português Criar, Recuperar, Atualizar e Excluir:
Fig. 0 – Tela do Microsoft Visual Studio Code com o projeto aberto. Fonte: Autores. 2021.
Fig. 0 – Tela de Consulta de cadastro do sistema em C#. Fonte: Autores. 2021.
A tela principal do sistema foi desenvolvido três botões de Cadastrar Pessoa, Consultar/Alterar Pessoa e Excluir Pessoa, vide figura 1. 
A seguir o código desenvolvide em C# da tela inicial do programa:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using CamadaModelo;
namespace PimVIII
{
 public partial class TelaPrincipal : Form
 {
 public TelaPrincipal()
 {
 InitializeComponent();
 }
 private void btnCadastra_Click(object sender, EventArgs e)
 {
 this.Visible = false;
 Inserir meu_segundo_form = new Inserir();
 meu_segundo_form.ShowDialog();
 this.Visible = true;
 }
 private void btnExcluir_Click(object sender, EventArgs e)
 {
 this.Visible = false;
 Excluir meu_segundo_form = new Excluir();
 meu_segundo_form.ShowDialog();
 this.Visible = true;
 }
 private void btnConsultar_Click(object sender, EventArgs e)
 {
 this.Visible = false;
 Consultar meu_segundo_form = new Consultar();
 meu_segundo_form.ShowDialog();
 this.Visible = true;
 }
 }
}
1.1.2 Cadastro
namespace PimVIII
{
 partial class Inserir
 {
 /// <summary>/// Required designer variable.
 /// </summary>
 private System.ComponentModel.IContainer components = null;
 /// <summary>
 /// Clean up any resources being used.
 /// </summary>
 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
 protected override void Dispose(bool disposing)
 {
 if (disposing && (components != null))
 {
 components.Dispose();
 }
 base.Dispose(disposing);
 }
 #region Windows Form Designer generated code
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
 this.components = new System.ComponentModel.Container();
 this.groupBox1 = new System.Windows.Forms.GroupBox();
 this.groupBox4 = new System.Windows.Forms.GroupBox();
 this.lblNroTelefone = new System.Windows.Forms.Label();
 this.txtTipoTelefone = new System.Windows.Forms.TextBox();
 this.lblDDD = new System.Windows.Forms.Label();
 this.lblTipo = new System.Windows.Forms.Label();
 this.txtDDD = new System.Windows.Forms.TextBox();
 this.txtNroTelefone = new System.Windows.Forms.TextBox();
 this.groupBox3 = new System.Windows.Forms.GroupBox();
 this.lblLogradouro = new System.Windows.Forms.Label();
 this.lblNumero = new System.Windows.Forms.Label();
 this.txtLogradouro = new System.Windows.Forms.TextBox();
 this.lblCEP = new System.Windows.Forms.Label();
 this.lblBairro = new System.Windows.Forms.Label();
 this.lblCidade = new System.Windows.Forms.Label();
 this.lblEstado = new System.Windows.Forms.Label();
 this.txtEstado = new System.Windows.Forms.TextBox();
 this.txtNumero = new System.Windows.Forms.TextBox();
 this.txtCidade = new System.Windows.Forms.TextBox();
 this.txtCEP = new System.Windows.Forms.TextBox();
 this.txtBairro = new System.Windows.Forms.TextBox();
 this.groupBox2 = new System.Windows.Forms.GroupBox();
 this.txtTelefone = new System.Windows.Forms.TextBox();
 this.label1 = new System.Windows.Forms.Label();
 this.lblNome = new System.Windows.Forms.Label();
 this.txtEndereco = new System.Windows.Forms.TextBox();
 this.lblendereco = new System.Windows.Forms.Label();
 this.lblCPF = new System.Windows.Forms.Label();
 this.txtNome = new System.Windows.Forms.TextBox();
 this.btnCadastra = new System.Windows.Forms.Button();
 this.txtCPF = new System.Windows.Forms.TextBox();
 this.btnRetornar = new System.Windows.Forms.Button();
 this.dbPessoasDataSet = new PimVIII.dbPessoasDataSet();
 this.pESSOABindingSource = new System.Windows.Forms.BindingSource(this.components);
 this.pESSOATableAdapter = new PimVIII.dbPessoasDataSetTableAdapters.PESSOATableAdapter();
 this.dbPessoasDataSet1 = new PimVIII.dbPessoasDataSet1();
 this.eNDERECOBindingSource = new System.Windows.Forms.BindingSource(this.components);
 this.eNDERECOTableAdapter = new PimVIII.dbPessoasDataSet1TableAdapters.ENDERECOTableAdapter();
 this.dbPessoasDataSet2 = new PimVIII.dbPessoasDataSet2();
 this.tELEFONEBindingSource = new System.Windows.Forms.BindingSource(this.components);
 this.tELEFONETableAdapter = new PimVIII.dbPessoasDataSet2TableAdapters.TELEFONETableAdapter();
 this.groupBox5 = new System.Windows.Forms.GroupBox();
 this.dataGridView1 = new System.Windows.Forms.DataGridView();
 this.idDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
 this.nomeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
 this.cpfDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
 this.enderecoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
 this.telefoneDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
 this.groupBox6 = new System.Windows.Forms.GroupBox();
 this.dataGridView2 = new System.Windows.Forms.DataGridView();
 this.idDataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
 this.logradouroDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
 this.numeroCasaDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
 this.cepDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
 this.bairroDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
 this.cidadeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
 this.estadoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
 this.groupBox7 = new System.Windows.Forms.GroupBox();
 this.dataGridView3 = new System.Windows.Forms.DataGridView();
 this.idDataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
 this.numeroTelefoneDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
 this.dddDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
 this.tipoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
 this.groupBox1.SuspendLayout();
 this.groupBox4.SuspendLayout();
 this.groupBox3.SuspendLayout();
 this.groupBox2.SuspendLayout();
 ((System.ComponentModel.ISupportInitialize)(this.dbPessoasDataSet)).BeginInit();
 ((System.ComponentModel.ISupportInitialize)(this.pESSOABindingSource)).BeginInit();
 ((System.ComponentModel.ISupportInitialize)(this.dbPessoasDataSet1)).BeginInit();
 ((System.ComponentModel.ISupportInitialize)(this.eNDERECOBindingSource)).BeginInit();
 ((System.ComponentModel.ISupportInitialize)(this.dbPessoasDataSet2)).BeginInit();
 ((System.ComponentModel.ISupportInitialize)(this.tELEFONEBindingSource)).BeginInit();
 this.groupBox5.SuspendLayout();
 ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
 this.groupBox6.SuspendLayout();
 ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit();
 this.groupBox7.SuspendLayout();
 ((System.ComponentModel.ISupportInitialize)(this.dataGridView3)).BeginInit();
 this.SuspendLayout();
 // 
 // groupBox1
 // 
 this.groupBox1.BackColor = System.Drawing.SystemColors.Control;
 this.groupBox1.Controls.Add(this.groupBox4);
 this.groupBox1.Controls.Add(this.groupBox3);
 this.groupBox1.Controls.Add(this.groupBox2);
 this.groupBox1.Controls.Add(this.btnCadastra);
 this.groupBox1.Location = new System.Drawing.Point(32, 12);
 this.groupBox1.Name = "groupBox1";
 this.groupBox1.Size = new System.Drawing.Size(359, 610);
 this.groupBox1.TabIndex = 24;
 this.groupBox1.TabStop = false;
 this.groupBox1.Text = "Cadastra Pessoa";
 // 
 // groupBox4
 // 
 this.groupBox4.BackColor = System.Drawing.SystemColors.ControlLight;
 this.groupBox4.Controls.Add(this.lblNroTelefone);
 this.groupBox4.Controls.Add(this.txtTipoTelefone);
 this.groupBox4.Controls.Add(this.lblDDD);this.groupBox4.Controls.Add(this.lblTipo);
 this.groupBox4.Controls.Add(this.txtDDD);
 this.groupBox4.Controls.Add(this.txtNroTelefone);
 this.groupBox4.Location = new System.Drawing.Point(20, 396);
 this.groupBox4.Name = "groupBox4";
 this.groupBox4.Size = new System.Drawing.Size(320, 110);
 this.groupBox4.TabIndex = 47;
 this.groupBox4.TabStop = false;
 this.groupBox4.Text = "Contato";
 // 
 // lblNroTelefone
 // 
 this.lblNroTelefone.AutoSize = true;
 this.lblNroTelefone.Location = new System.Drawing.Point(6, 26);
 this.lblNroTelefone.Name = "lblNroTelefone";
 this.lblNroTelefone.Size = new System.Drawing.Size(88, 13);
 this.lblNroTelefone.TabIndex = 31;
 this.lblNroTelefone.Text = "Número telefone:";
 // 
 // txtTipoTelefone
 // 
 this.txtTipoTelefone.Location = new System.Drawing.Point(97, 77);
 this.txtTipoTelefone.Name = "txtTipoTelefone";
 this.txtTipoTelefone.Size = new System.Drawing.Size(123, 20);
 this.txtTipoTelefone.TabIndex = 43;
 // 
 // lblDDD
 // 
 this.lblDDD.AutoSize = true;
 this.lblDDD.Location = new System.Drawing.Point(57, 53);
 this.lblDDD.Name = "lblDDD";
 this.lblDDD.Size = new System.Drawing.Size(34, 13);
 this.lblDDD.TabIndex = 32;
 this.lblDDD.Text = "DDD:";
 // 
 // lblTipo
 // 
 this.lblTipo.AutoSize = true;
 this.lblTipo.Location = new System.Drawing.Point(4, 80);
 this.lblTipo.Name = "lblTipo";
 this.lblTipo.Size = new System.Drawing.Size(87, 13);
 this.lblTipo.TabIndex = 33;
 this.lblTipo.Text = "Tipo de telefone:";
 // 
 // txtDDD
 // 
 this.txtDDD.Location = new System.Drawing.Point(97, 50);
 this.txtDDD.Name = "txtDDD";
 this.txtDDD.Size = new System.Drawing.Size(123, 20);
 this.txtDDD.TabIndex = 42;
 // 
 // txtNroTelefone
 // 
 this.txtNroTelefone.Location = new System.Drawing.Point(97, 23);
 this.txtNroTelefone.Name = "txtNroTelefone";
 this.txtNroTelefone.Size = new System.Drawing.Size(123, 20);
 this.txtNroTelefone.TabIndex = 41;
 // 
 // groupBox3
 // 
 this.groupBox3.BackColor = System.Drawing.SystemColors.ControlLight;
 this.groupBox3.Controls.Add(this.lblLogradouro);
 this.groupBox3.Controls.Add(this.lblNumero);
 this.groupBox3.Controls.Add(this.txtLogradouro);
 this.groupBox3.Controls.Add(this.lblCEP);
 this.groupBox3.Controls.Add(this.lblBairro);
 this.groupBox3.Controls.Add(this.lblCidade);
 this.groupBox3.Controls.Add(this.lblEstado);
 this.groupBox3.Controls.Add(this.txtEstado);
 this.groupBox3.Controls.Add(this.txtNumero);
 this.groupBox3.Controls.Add(this.txtCidade);
 this.groupBox3.Controls.Add(this.txtCEP);
 this.groupBox3.Controls.Add(this.txtBairro);
 this.groupBox3.Location = new System.Drawing.Point(20, 166);
 this.groupBox3.Name = "groupBox3";
 this.groupBox3.Size = new System.Drawing.Size(320, 224);
 this.groupBox3.TabIndex = 47;
 this.groupBox3.TabStop = false;
 this.groupBox3.Text = "Endereço";
 // 
 // lblLogradouro
 // 
 this.lblLogradouro.AutoSize = true;
 this.lblLogradouro.Location = new System.Drawing.Point(13, 59);
 this.lblLogradouro.Name = "lblLogradouro";
 this.lblLogradouro.Size = new System.Drawing.Size(64, 13);
 this.lblLogradouro.TabIndex = 25;
 this.lblLogradouro.Text = "Logradouro:";
 // 
 // lblNumero
 // 
 this.lblNumero.AutoSize = true;
 this.lblNumero.Location = new System.Drawing.Point(27, 85);
 this.lblNumero.Name = "lblNumero";
 this.lblNumero.Size = new System.Drawing.Size(47, 13);
 this.lblNumero.TabIndex = 26;
 this.lblNumero.Text = "Número:";
 // 
 // txtLogradouro
 // 
 this.txtLogradouro.Location = new System.Drawing.Point(80, 56);
 this.txtLogradouro.Name = "txtLogradouro";
 this.txtLogradouro.Size = new System.Drawing.Size(222, 20);
 this.txtLogradouro.TabIndex = 44;
 // 
 // lblCEP
 // 
 this.lblCEP.AutoSize = true;
 this.lblCEP.Location = new System.Drawing.Point(43, 109);
 this.lblCEP.Name = "lblCEP";
 this.lblCEP.Size = new System.Drawing.Size(31, 13);
 this.lblCEP.TabIndex = 27;
 this.lblCEP.Text = "CEP:";
 // 
 // lblBairro
 // 
 this.lblBairro.AutoSize = true;
 this.lblBairro.Location = new System.Drawing.Point(37, 137);
 this.lblBairro.Name = "lblBairro";
 this.lblBairro.Size = new System.Drawing.Size(37, 13);
 this.lblBairro.TabIndex = 28;
 this.lblBairro.Text = "Bairro:";
 // 
 // lblCidade
 // 
 this.lblCidade.AutoSize = true;
 this.lblCidade.Location = new System.Drawing.Point(34, 163);
 this.lblCidade.Name = "lblCidade";
 this.lblCidade.Size = new System.Drawing.Size(43, 13);
 this.lblCidade.TabIndex = 29;
 this.lblCidade.Text = "Cidade:";
 // 
 // lblEstado
 // 
 this.lblEstado.AutoSize = true;
 this.lblEstado.Location = new System.Drawing.Point(34, 189);
 this.lblEstado.Name = "lblEstado";
 this.lblEstado.Size = new System.Drawing.Size(43, 13);
 this.lblEstado.TabIndex = 30;
 this.lblEstado.Text = "Estado:";
 // 
 // txtEstado
 // 
 this.txtEstado.Location = new System.Drawing.Point(80, 186);
 this.txtEstado.Name = "txtEstado";
 this.txtEstado.Size = new System.Drawing.Size(100, 20);
 this.txtEstado.TabIndex = 40;
 // 
 // txtNumero
 // 
 this.txtNumero.Location = new System.Drawing.Point(80, 82);
 this.txtNumero.Name = "txtNumero";
 this.txtNumero.Size = new System.Drawing.Size(100, 20);
 this.txtNumero.TabIndex = 36;
 // 
 // txtCidade
 // 
 this.txtCidade.Location = new System.Drawing.Point(80, 160);
 this.txtCidade.Name = "txtCidade";
 this.txtCidade.Size = new System.Drawing.Size(100, 20);
 this.txtCidade.TabIndex = 39;
 // 
 // txtCEP
 // 
 this.txtCEP.Location = new System.Drawing.Point(80, 108);
 this.txtCEP.Name = "txtCEP";
 this.txtCEP.Size = new System.Drawing.Size(100, 20);
 this.txtCEP.TabIndex = 37;
 // 
 // txtBairro
 // 
 this.txtBairro.Location = new System.Drawing.Point(80, 134);
 this.txtBairro.Name = "txtBairro";
 this.txtBairro.Size = new System.Drawing.Size(100, 20);
 this.txtBairro.TabIndex = 38;
 // 
 // groupBox2
 // 
 this.groupBox2.BackColor = System.Drawing.SystemColors.ControlLight;
 this.groupBox2.Controls.Add(this.txtTelefone);
 this.groupBox2.Controls.Add(this.label1);
 this.groupBox2.Controls.Add(this.lblNome);
 this.groupBox2.Controls.Add(this.txtEndereco);
 this.groupBox2.Controls.Add(this.lblendereco);this.groupBox2.Controls.Add(this.lblCPF);
 this.groupBox2.Controls.Add(this.txtNome);
 this.groupBox2.Controls.Add(this.txtCPF);
 this.groupBox2.Location = new System.Drawing.Point(20, 28);
 this.groupBox2.Name = "groupBox2";
 this.groupBox2.Size = new System.Drawing.Size(320, 132);
 this.groupBox2.TabIndex = 25;
 this.groupBox2.TabStop = false;
 this.groupBox2.Text = "Dados pessoais";
 // 
 // txtTelefone
 // 
 this.txtTelefone.Location = new System.Drawing.Point(234, 83);
 this.txtTelefone.Name = "txtTelefone";
 this.txtTelefone.Size = new System.Drawing.Size(35, 20);
 this.txtTelefone.TabIndex = 50;
 // 
 // label1
 // 
 this.label1.AutoSize = true;
 this.label1.Location = new System.Drawing.Point(179, 86);
 this.label1.Name = "label1";
 this.label1.Size = new System.Drawing.Size(49, 13);
 this.label1.TabIndex = 49;
 this.label1.Text = "Telefone";
 // 
 // lblNome
 // 
 this.lblNome.AutoSize = true;
 this.lblNome.Location = new System.Drawing.Point(6, 29);
 this.lblNome.Name = "lblNome";
 this.lblNome.Size = new System.Drawing.Size(38, 13);
 this.lblNome.TabIndex = 23;
 this.lblNome.Text = "Nome:";
 // 
 // txtEndereco
 // 
 this.txtEndereco.Location = new System.Drawing.Point(234, 56);
 this.txtEndereco.Name = "txtEndereco";
 this.txtEndereco.Size = new System.Drawing.Size(35, 20);
 this.txtEndereco.TabIndex = 48;
 // 
 // lblendereco
 // 
 this.lblendereco.AutoSize = true;
 this.lblendereco.Location = new System.Drawing.Point(176, 59);
 this.lblendereco.Name = "lblendereco";
 this.lblendereco.Size = new System.Drawing.Size(56, 13);
 this.lblendereco.TabIndex = 47;
 this.lblendereco.Text = "Endereço:";
 // 
 // lblCPF
 // 
 this.lblCPF.AutoSize = true;
 this.lblCPF.Location = new System.Drawing.Point(11, 55);
 this.lblCPF.Name = "lblCPF";
 this.lblCPF.Size = new System.Drawing.Size(30, 13);
 this.lblCPF.TabIndex = 24;
 this.lblCPF.Text = "CPF:";
 // 
 // txtNome
 // 
 this.txtNome.Location = new System.Drawing.Point(47, 26);
 this.txtNome.Name = "txtNome";
 this.txtNome.Size = new System.Drawing.Size(222, 20);
 this.txtNome.TabIndex = 34;
 // 
 // btnCadastra
 // 
 this.btnCadastra.BackColor = System.Drawing.Color.SpringGreen;
 this.btnCadastra.Location = new System.Drawing.Point(50, 525);
 this.btnCadastra.Name = "btnCadastra";
 this.btnCadastra.Size = new System.Drawing.Size(251, 66);
 this.btnCadastra.TabIndex = 45;
 this.btnCadastra.Text = "Cadastrar pessoa";
 this.btnCadastra.UseVisualStyleBackColor = false;
 this.btnCadastra.Click += new System.EventHandler(this.btnCadastra_Click);
 // 
 // txtCPF
 // 
 this.txtCPF.Location = new System.Drawing.Point(47, 52);
 this.txtCPF.Name = "txtCPF";
 this.txtCPF.Size = new System.Drawing.Size(100, 20);
 this.txtCPF.TabIndex = 35;
 // 
 // btnRetornar
 // 
 this.btnRetornar.BackColor = System.Drawing.Color.IndianRed;
 this.btnRetornar.Location = new System.Drawing.Point(32, 628);
 this.btnRetornar.Name = "btnRetornar";
 this.btnRetornar.Size = new System.Drawing.Size(359, 73);
 this.btnRetornar.TabIndex = 46;
 this.btnRetornar.Text = "Cancela e retorna";
 this.btnRetornar.UseVisualStyleBackColor = false;
 this.btnRetornar.Click += new System.EventHandler(this.btnRetornar_Click);
 // 
 // dbPessoasDataSet
 // 
 this.dbPessoasDataSet.DataSetName = "dbPessoasDataSet";
 this.dbPessoasDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
 // 
 // pESSOABindingSource
 // 
 this.pESSOABindingSource.DataMember = "PESSOA";
 this.pESSOABindingSource.DataSource = this.dbPessoasDataSet;
 // 
 // pESSOATableAdapter
 // 
 this.pESSOATableAdapter.ClearBeforeFill = true;
 // 
 // dbPessoasDataSet1
 // 
 this.dbPessoasDataSet1.DataSetName = "dbPessoasDataSet1";
 this.dbPessoasDataSet1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
 // 
 // eNDERECOBindingSource
 // 
 this.eNDERECOBindingSource.DataMember = "ENDERECO";
 this.eNDERECOBindingSource.DataSource = this.dbPessoasDataSet1;
 // 
 // eNDERECOTableAdapter
 // 
 this.eNDERECOTableAdapter.ClearBeforeFill = true;
 // 
 // dbPessoasDataSet2
 // 
 this.dbPessoasDataSet2.DataSetName = "dbPessoasDataSet2";
 this.dbPessoasDataSet2.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
 // 
 // tELEFONEBindingSource
 // 
 this.tELEFONEBindingSource.DataMember = "TELEFONE";
 this.tELEFONEBindingSource.DataSource = this.dbPessoasDataSet2;
 // 
 // tELEFONETableAdapter
 // 
 this.tELEFONETableAdapter.ClearBeforeFill = true;
 // 
 // groupBox5
 // 
 this.groupBox5.BackColor = System.Drawing.SystemColors.Control;
 this.groupBox5.Controls.Add(this.dataGridView1);
 this.groupBox5.Location = new System.Drawing.Point(407, 16);
 this.groupBox5.Name = "groupBox5";
 this.groupBox5.Size = new System.Drawing.Size(798, 156);
 this.groupBox5.TabIndex = 50;
 this.groupBox5.TabStop = false;
 this.groupBox5.Text = "Pessoas cadastradas";
 // 
 // dataGridView1
 // 
 this.dataGridView1.AutoGenerateColumns = false;
 this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
 this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
 this.idDataGridViewTextBoxColumn,
 this.nomeDataGridViewTextBoxColumn,
 this.cpfDataGridViewTextBoxColumn,
 this.enderecoDataGridViewTextBoxColumn,
 this.telefoneDataGridViewTextBoxColumn});
 this.dataGridView1.DataSource = this.pESSOABindingSource;
 this.dataGridView1.Location = new System.Drawing.Point(17, 19);
 this.dataGridView1.Name = "dataGridView1";
 this.dataGridView1.Size = new System.Drawing.Size(750, 97);
 this.dataGridView1.TabIndex = 48;
 // 
 // idDataGridViewTextBoxColumn
 // 
 this.idDataGridViewTextBoxColumn.DataPropertyName = "id";
 this.idDataGridViewTextBoxColumn.HeaderText = "id";
 this.idDataGridViewTextBoxColumn.Name = "idDataGridViewTextBoxColumn";
 // 
 // nomeDataGridViewTextBoxColumn
 // 
 this.nomeDataGridViewTextBoxColumn.DataPropertyName = "nome";
 this.nomeDataGridViewTextBoxColumn.HeaderText = "nome";
 this.nomeDataGridViewTextBoxColumn.Name = "nomeDataGridViewTextBoxColumn";
 // 
 // cpfDataGridViewTextBoxColumn// 
 this.cpfDataGridViewTextBoxColumn.DataPropertyName = "cpf";
 this.cpfDataGridViewTextBoxColumn.HeaderText = "cpf";
 this.cpfDataGridViewTextBoxColumn.Name = "cpfDataGridViewTextBoxColumn";
 // 
 // enderecoDataGridViewTextBoxColumn
 // 
 this.enderecoDataGridViewTextBoxColumn.DataPropertyName = "endereco";
 this.enderecoDataGridViewTextBoxColumn.HeaderText = "endereco";
 this.enderecoDataGridViewTextBoxColumn.Name = "enderecoDataGridViewTextBoxColumn";
 // 
 // telefoneDataGridViewTextBoxColumn
 // 
 this.telefoneDataGridViewTextBoxColumn.DataPropertyName = "telefone";
 this.telefoneDataGridViewTextBoxColumn.HeaderText = "telefone";
 this.telefoneDataGridViewTextBoxColumn.Name = "telefoneDataGridViewTextBoxColumn";
 // 
 // groupBox6
 // 
 this.groupBox6.BackColor = System.Drawing.SystemColors.Control;
 this.groupBox6.Controls.Add(this.dataGridView2);
 this.groupBox6.Location = new System.Drawing.Point(407, 180);
 this.groupBox6.Name = "groupBox6";
 this.groupBox6.Size = new System.Drawing.Size(798, 222);
 this.groupBox6.TabIndex = 51;
 this.groupBox6.TabStop = false;
 this.groupBox6.Text = "Endereços cadastrados";
 // 
 // dataGridView2
 // 
 this.dataGridView2.AutoGenerateColumns = false;
 this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
 this.dataGridView2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
 this.idDataGridViewTextBoxColumn1,
 this.logradouroDataGridViewTextBoxColumn,
 this.numeroCasaDataGridViewTextBoxColumn,
 this.cepDataGridViewTextBoxColumn,
 this.bairroDataGridViewTextBoxColumn,
 this.cidadeDataGridViewTextBoxColumn,
 this.estadoDataGridViewTextBoxColumn});
 this.dataGridView2.DataSource = this.eNDERECOBindingSource;
 this.dataGridView2.Location = new System.Drawing.Point(17, 19);
 this.dataGridView2.Name = "dataGridView2";
 this.dataGridView2.Size = new System.Drawing.Size(750, 181);
 this.dataGridView2.TabIndex = 49;
 // 
 // idDataGridViewTextBoxColumn1
 // 
 this.idDataGridViewTextBoxColumn1.DataPropertyName = "id";
 this.idDataGridViewTextBoxColumn1.HeaderText = "id";
 this.idDataGridViewTextBoxColumn1.Name = "idDataGridViewTextBoxColumn1";
 // 
 // logradouroDataGridViewTextBoxColumn
 // 
 this.logradouroDataGridViewTextBoxColumn.DataPropertyName = "logradouro";
 this.logradouroDataGridViewTextBoxColumn.HeaderText = "logradouro";
 this.logradouroDataGridViewTextBoxColumn.Name = "logradouroDataGridViewTextBoxColumn";
 // 
 // numeroCasaDataGridViewTextBoxColumn
 // 
 this.numeroCasaDataGridViewTextBoxColumn.DataPropertyName = "numeroCasa";
 this.numeroCasaDataGridViewTextBoxColumn.HeaderText = "numeroCasa";
 this.numeroCasaDataGridViewTextBoxColumn.Name = "numeroCasaDataGridViewTextBoxColumn";
 // 
 // cepDataGridViewTextBoxColumn
 // 
 this.cepDataGridViewTextBoxColumn.DataPropertyName = "cep";
 this.cepDataGridViewTextBoxColumn.HeaderText = "cep";
 this.cepDataGridViewTextBoxColumn.Name = "cepDataGridViewTextBoxColumn";
 // 
 // bairroDataGridViewTextBoxColumn
 // 
 this.bairroDataGridViewTextBoxColumn.DataPropertyName = "bairro";
 this.bairroDataGridViewTextBoxColumn.HeaderText = "bairro";
 this.bairroDataGridViewTextBoxColumn.Name = "bairroDataGridViewTextBoxColumn";
 // 
 // cidadeDataGridViewTextBoxColumn
 // 
 this.cidadeDataGridViewTextBoxColumn.DataPropertyName = "cidade";
 this.cidadeDataGridViewTextBoxColumn.HeaderText = "cidade";
 this.cidadeDataGridViewTextBoxColumn.Name = "cidadeDataGridViewTextBoxColumn";
 // 
 // estadoDataGridViewTextBoxColumn
 // 
 this.estadoDataGridViewTextBoxColumn.DataPropertyName = "estado";
 this.estadoDataGridViewTextBoxColumn.HeaderText = "estado";
 this.estadoDataGridViewTextBoxColumn.Name = "estadoDataGridViewTextBoxColumn";
 // 
 // groupBox7
 // 
 this.groupBox7.BackColor = System.Drawing.SystemColors.ControlLight;
 this.groupBox7.Controls.Add(this.dataGridView3);
 this.groupBox7.Location = new System.Drawing.Point(407, 408);
 this.groupBox7.Name = "groupBox7";
 this.groupBox7.Size = new System.Drawing.Size(798, 179);
 this.groupBox7.TabIndex = 52;
 this.groupBox7.TabStop = false;
 this.groupBox7.Text = "Telefones cadastrados";
 // 
 // dataGridView3
 // 
 this.dataGridView3.AutoGenerateColumns = false;
 this.dataGridView3.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
 this.dataGridView3.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
 this.idDataGridViewTextBoxColumn2,
 this.numeroTelefoneDataGridViewTextBoxColumn,
 this.dddDataGridViewTextBoxColumn,
 this.tipoDataGridViewTextBoxColumn});
 this.dataGridView3.DataSource = this.tELEFONEBindingSource;
 this.dataGridView3.Location = new System.Drawing.Point(17, 23);
 this.dataGridView3.Name = "dataGridView3";
 this.dataGridView3.Size = new System.Drawing.Size(750, 150);
 this.dataGridView3.TabIndex = 50;
 // 
 // idDataGridViewTextBoxColumn2
 // 
 this.idDataGridViewTextBoxColumn2.DataPropertyName = "id";
 this.idDataGridViewTextBoxColumn2.HeaderText = "id";
 this.idDataGridViewTextBoxColumn2.Name = "idDataGridViewTextBoxColumn2";
 // 
 // numeroTelefoneDataGridViewTextBoxColumn
 // 
 this.numeroTelefoneDataGridViewTextBoxColumn.DataPropertyName = "numeroTelefone";
 this.numeroTelefoneDataGridViewTextBoxColumn.HeaderText = "numeroTelefone";
 this.numeroTelefoneDataGridViewTextBoxColumn.Name = "numeroTelefoneDataGridViewTextBoxColumn";
 // 
 // dddDataGridViewTextBoxColumn
 // 
 this.dddDataGridViewTextBoxColumn.DataPropertyName = "ddd";
 this.dddDataGridViewTextBoxColumn.HeaderText = "ddd";
 this.dddDataGridViewTextBoxColumn.Name = "dddDataGridViewTextBoxColumn";
 // 
 // tipoDataGridViewTextBoxColumn
 // 
 this.tipoDataGridViewTextBoxColumn.DataPropertyName = "tipo";
 this.tipoDataGridViewTextBoxColumn.HeaderText = "tipo";
 this.tipoDataGridViewTextBoxColumn.Name = "tipoDataGridViewTextBoxColumn";
 // 
 // Inserir
 // 
 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
 this.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
 this.ClientSize = new System.Drawing.Size(1277, 713);
 this.Controls.Add(this.groupBox7);
 this.Controls.Add(this.groupBox6);
 this.Controls.Add(this.groupBox5);
 this.Controls.Add(this.groupBox1);
 this.Controls.Add(this.btnRetornar);
 this.ForeColor = System.Drawing.SystemColors.ControlText;this.Name = "Inserir";
 this.Text = "Cadastrar pessoa";
 this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
 this.Load += new System.EventHandler(this.Inserir_Load);
 this.groupBox1.ResumeLayout(false);
 this.groupBox4.ResumeLayout(false);
 this.groupBox4.PerformLayout();
 this.groupBox3.ResumeLayout(false);
 this.groupBox3.PerformLayout();
 this.groupBox2.ResumeLayout(false);
 this.groupBox2.PerformLayout();
 ((System.ComponentModel.ISupportInitialize)(this.dbPessoasDataSet)).EndInit();
 ((System.ComponentModel.ISupportInitialize)(this.pESSOABindingSource)).EndInit();
 ((System.ComponentModel.ISupportInitialize)(this.dbPessoasDataSet1)).EndInit();
 ((System.ComponentModel.ISupportInitialize)(this.eNDERECOBindingSource)).EndInit();
 ((System.ComponentModel.ISupportInitialize)(this.dbPessoasDataSet2)).EndInit();
 ((System.ComponentModel.ISupportInitialize)(this.tELEFONEBindingSource)).EndInit();
 this.groupBox5.ResumeLayout(false);
 ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
 this.groupBox6.ResumeLayout(false);
 ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit();
 this.groupBox7.ResumeLayout(false);
 ((System.ComponentModel.ISupportInitialize)(this.dataGridView3)).EndInit();
 this.ResumeLayout(false);
 }
 #endregion
 private System.Windows.Forms.GroupBox groupBox1;
 private System.Windows.Forms.Button btnCadastra;
 private System.Windows.Forms.TextBox txtLogradouro;
 private System.Windows.Forms.TextBox txtTipoTelefone;
 private System.Windows.Forms.TextBox txtDDD;
 private System.Windows.Forms.TextBox txtNroTelefone;
 private System.Windows.Forms.TextBox txtEstado;
 private System.Windows.Forms.TextBox txtCidade;
 private System.Windows.Forms.TextBox txtBairro;
 private System.Windows.Forms.TextBox txtCEP;
 private System.Windows.Forms.TextBox txtNumero;
 private System.Windows.Forms.TextBox txtCPF;
 private System.Windows.Forms.TextBox txtNome;
 private System.Windows.Forms.Label lblTipo;
 private System.Windows.Forms.Label lblDDD;
 private System.Windows.Forms.Label lblNroTelefone;
 private System.Windows.Forms.Label lblEstado;
 private System.Windows.Forms.Label lblCidade;
 private System.Windows.Forms.Label lblBairro;
 private System.Windows.Forms.Label lblCEP;
 private System.Windows.Forms.Label lblNumero;
 private System.Windows.Forms.Label lblLogradouro;
 private System.Windows.Forms.Label lblCPF;
 private System.Windows.Forms.Label lblNome;
 private System.Windows.Forms.Button btnRetornar;
 private System.Windows.Forms.TextBox txtEndereco;
 private System.Windows.Forms.Label lblendereco;
 private System.Windows.Forms.GroupBox groupBox2;
 private System.Windows.Forms.GroupBox groupBox3;
 private System.Windows.Forms.GroupBox groupBox4;
 private System.Windows.Forms.TextBox txtTelefone;
 private System.Windows.Forms.Label label1;
 private dbPessoasDataSet dbPessoasDataSet;
 private System.Windows.Forms.BindingSource pESSOABindingSource;
 private dbPessoasDataSetTableAdapters.PESSOATableAdapter pESSOATableAdapter;
 private dbPessoasDataSet1 dbPessoasDataSet1;
 private System.Windows.Forms.BindingSource eNDERECOBindingSource;
 private dbPessoasDataSet1TableAdapters.ENDERECOTableAdapter eNDERECOTableAdapter;
 private dbPessoasDataSet2 dbPessoasDataSet2;
 private System.Windows.Forms.BindingSource tELEFONEBindingSource;
 private dbPessoasDataSet2TableAdapters.TELEFONETableAdapter tELEFONETableAdapter;
 private System.Windows.Forms.GroupBox groupBox5;
 private System.Windows.Forms.DataGridView dataGridView1;
 private System.Windows.Forms.DataGridViewTextBoxColumn idDataGridViewTextBoxColumn;
 private System.Windows.Forms.DataGridViewTextBoxColumn nomeDataGridViewTextBoxColumn;
 private System.Windows.Forms.DataGridViewTextBoxColumn cpfDataGridViewTextBoxColumn;
 private System.Windows.Forms.DataGridViewTextBoxColumn enderecoDataGridViewTextBoxColumn;
 private System.Windows.Forms.DataGridViewTextBoxColumn telefoneDataGridViewTextBoxColumn;
 private System.Windows.Forms.GroupBox groupBox6;
 private System.Windows.Forms.DataGridView dataGridView2;
 private System.Windows.Forms.DataGridViewTextBoxColumn idDataGridViewTextBoxColumn1;
 private System.Windows.Forms.DataGridViewTextBoxColumn logradouroDataGridViewTextBoxColumn;
 private System.Windows.Forms.DataGridViewTextBoxColumn numeroCasaDataGridViewTextBoxColumn;
 private System.Windows.Forms.DataGridViewTextBoxColumn cepDataGridViewTextBoxColumn;
 private System.Windows.Forms.DataGridViewTextBoxColumn bairroDataGridViewTextBoxColumn;
 private System.Windows.Forms.DataGridViewTextBoxColumn cidadeDataGridViewTextBoxColumn;
 private System.Windows.Forms.DataGridViewTextBoxColumn estadoDataGridViewTextBoxColumn;
 private System.Windows.Forms.GroupBox groupBox7;
 private System.Windows.Forms.DataGridView dataGridView3;
 private System.Windows.Forms.DataGridViewTextBoxColumn idDataGridViewTextBoxColumn2;
 private System.Windows.Forms.DataGridViewTextBoxColumn numeroTelefoneDataGridViewTextBoxColumn;
 private System.Windows.Forms.DataGridViewTextBoxColumn dddDataGridViewTextBoxColumn;
 private System.Windows.Forms.DataGridViewTextBoxColumn tipoDataGridViewTextBoxColumn;
 }
}
1.1.3 Validação
1.1.4 Excluir dados da classe Pessoa
namespace PimVIII
{
 partial class Excluir
 {
 /// <summary>
 /// Required designer variable.
 /// </summary>
 private System.ComponentModel.IContainer components = null;
 /// <summary>
 /// Clean up any resources being used.
 /// </summary>
 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
 protected override void Dispose(bool disposing)
 {
 if (disposing && (components != null))
 {
 components.Dispose();
 }
 base.Dispose(disposing);
 }
 #region Windows Form Designer generated code
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
 this.components = new System.ComponentModel.Container();
 this.btnRetornar = new System.Windows.Forms.Button();
 this.grpPesquisar = new System.Windows.Forms.GroupBox();
 this.txtPesquisar = new System.Windows.Forms.TextBox();
 this.lblPesquisar = new System.Windows.Forms.Label();
 this.btnExcluir = new System.Windows.Forms.Button();
 this.dataGridView1 = new System.Windows.Forms.DataGridView();
 this.idDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
 this.nomeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
 this.cpfDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
 this.enderecoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
 this.telefoneDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
 this.pESSOABindingSource = new System.Windows.Forms.BindingSource(this.components);
 this.dbPessoasDataSetExclusao = new PimVIII.dbPessoasDataSetExclusao();this.pESSOATableAdapter = new PimVIII.dbPessoasDataSetExclusaoTableAdapters.PESSOATableAdapter();
 this.grpPesquisar.SuspendLayout();
 ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
 ((System.ComponentModel.ISupportInitialize)(this.pESSOABindingSource)).BeginInit();
 ((System.ComponentModel.ISupportInitialize)(this.dbPessoasDataSetExclusao)).BeginInit();
 this.SuspendLayout();
 // 
 // btnRetornar
 // 
 this.btnRetornar.Location = new System.Drawing.Point(68, 253);
 this.btnRetornar.Name = "btnRetornar";
 this.btnRetornar.Size = new System.Drawing.Size(173, 46);
 this.btnRetornar.TabIndex = 2;
 this.btnRetornar.Text = "Cancela e retorna";
 this.btnRetornar.UseVisualStyleBackColor = true;
 this.btnRetornar.Click += new System.EventHandler(this.btnRetornar_Click);
 // 
 // grpPesquisar
 // 
 this.grpPesquisar.Controls.Add(this.btnExcluir);
 this.grpPesquisar.Controls.Add(this.txtPesquisar);
 this.grpPesquisar.Controls.Add(this.lblPesquisar);
 this.grpPesquisar.Location = new System.Drawing.Point(22, 22);
 this.grpPesquisar.Name = "grpPesquisar";
 this.grpPesquisar.Size = new System.Drawing.Size(278, 210);
 this.grpPesquisar.TabIndex = 4;
 this.grpPesquisar.TabStop = false;
 this.grpPesquisar.Text = "Exluir registro";
 // 
 // txtPesquisar
 // 
 this.txtPesquisar.Location = new System.Drawing.Point(9, 53);
 this.txtPesquisar.Name = "txtPesquisar";
 this.txtPesquisar.Size = new System.Drawing.Size(210, 20);
 this.txtPesquisar.TabIndex = 6;
 // 
 // lblPesquisar
 // 
 this.lblPesquisar.AutoSize = true;
 this.lblPesquisar.Location = new System.Drawing.Point(6, 28);
 this.lblPesquisar.Name = "lblPesquisar";
 this.lblPesquisar.Size = new System.Drawing.Size(188, 13);
 this.lblPesquisar.TabIndex = 4;
 this.lblPesquisar.Text = "Digite o CPF da pessoa a ser excluída";
 // 
 // btnExcluir
 // 
 this.btnExcluir.BackColor = System.Drawing.Color.IndianRed;
 this.btnExcluir.Location = new System.Drawing.Point(9, 101);
 this.btnExcluir.Name = "btnExcluir";
 this.btnExcluir.Size = new System.Drawing.Size(252, 89);
 this.btnExcluir.TabIndex = 10;
 this.btnExcluir.Text = "Excluir cadastro";
 this.btnExcluir.UseVisualStyleBackColor = false;
 this.btnExcluir.Click += new System.EventHandler(this.btnExcluir_Click);
 // 
 // dataGridView1
 // 
 this.dataGridView1.AutoGenerateColumns = false;
 this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
 this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
 this.idDataGridViewTextBoxColumn,
 this.nomeDataGridViewTextBoxColumn,
 this.cpfDataGridViewTextBoxColumn,
 this.enderecoDataGridViewTextBoxColumn,
 this.telefoneDataGridViewTextBoxColumn});
 this.dataGridView1.DataSource = this.pESSOABindingSource;
 this.dataGridView1.Location = new System.Drawing.Point(329, 22);
 this.dataGridView1.Name = "dataGridView1";
 this.dataGridView1.Size = new System.Drawing.Size(566, 309);
 this.dataGridView1.TabIndex = 9;
 // 
 // idDataGridViewTextBoxColumn
 // 
 this.idDataGridViewTextBoxColumn.DataPropertyName = "id";
 this.idDataGridViewTextBoxColumn.HeaderText = "id";
 this.idDataGridViewTextBoxColumn.Name = "idDataGridViewTextBoxColumn";
 // 
 // nomeDataGridViewTextBoxColumn
 // 
 this.nomeDataGridViewTextBoxColumn.DataPropertyName = "nome";
 this.nomeDataGridViewTextBoxColumn.HeaderText = "nome";
 this.nomeDataGridViewTextBoxColumn.Name = "nomeDataGridViewTextBoxColumn";
 // 
 // cpfDataGridViewTextBoxColumn
 // 
 this.cpfDataGridViewTextBoxColumn.DataPropertyName = "cpf";
 this.cpfDataGridViewTextBoxColumn.HeaderText = "cpf";
 this.cpfDataGridViewTextBoxColumn.Name = "cpfDataGridViewTextBoxColumn";
 // 
 // enderecoDataGridViewTextBoxColumn
 // 
 this.enderecoDataGridViewTextBoxColumn.DataPropertyName = "endereco";
 this.enderecoDataGridViewTextBoxColumn.HeaderText = "endereco";
 this.enderecoDataGridViewTextBoxColumn.Name = "enderecoDataGridViewTextBoxColumn";
 // 
 // telefoneDataGridViewTextBoxColumn
 // 
 this.telefoneDataGridViewTextBoxColumn.DataPropertyName = "telefone";
 this.telefoneDataGridViewTextBoxColumn.HeaderText = "telefone";
 this.telefoneDataGridViewTextBoxColumn.Name = "telefoneDataGridViewTextBoxColumn";
 // 
 // pESSOABindingSource
 // 
 this.pESSOABindingSource.DataMember = "PESSOA";
 this.pESSOABindingSource.DataSource = this.dbPessoasDataSetExclusao;
 // 
 // dbPessoasDataSetExclusao
 // 
 this.dbPessoasDataSetExclusao.DataSetName = "dbPessoasDataSetExclusao";
 this.dbPessoasDataSetExclusao.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
 // 
 // pESSOATableAdapter
 // 
 this.pESSOATableAdapter.ClearBeforeFill = true;
 // 
 // Excluir
 // 
 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
 this.ClientSize = new System.Drawing.Size(922, 450);
 this.Controls.Add(this.dataGridView1);
 this.Controls.Add(this.grpPesquisar);
 this.Controls.Add(this.btnRetornar);
 this.Name = "Excluir";
 this.Text = "Excluir Pessoa";
 this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
 this.Load += new System.EventHandler(this.Excluir_Load);
 this.grpPesquisar.ResumeLayout(false);
 this.grpPesquisar.PerformLayout();
 ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
 ((System.ComponentModel.ISupportInitialize)(this.pESSOABindingSource)).EndInit();
 ((System.ComponentModel.ISupportInitialize)(this.dbPessoasDataSetExclusao)).EndInit();
 this.ResumeLayout(false);
 }
 #endregion
 private System.Windows.Forms.Button btnRetornar;
 private System.Windows.Forms.GroupBox grpPesquisar;
 private System.Windows.Forms.TextBox txtPesquisar;
 private System.Windows.Forms.Label lblPesquisar;
 private System.Windows.Forms.Button btnExcluir;
 private System.Windows.Forms.DataGridView dataGridView1;
 private dbPessoasDataSetExclusao dbPessoasDataSetExclusao;
 private System.Windows.Forms.BindingSource pESSOABindingSource;
 private dbPessoasDataSetExclusaoTableAdapters.PESSOATableAdapter pESSOATableAdapter;
 private System.Windows.Forms.DataGridViewTextBoxColumn idDataGridViewTextBoxColumn;
 private System.Windows.Forms.DataGridViewTextBoxColumn nomeDataGridViewTextBoxColumn;
 private System.Windows.Forms.DataGridViewTextBoxColumn cpfDataGridViewTextBoxColumn;
 private System.Windows.Forms.DataGridViewTextBoxColumn enderecoDataGridViewTextBoxColumn;
 private System.Windows.Forms.DataGridViewTextBoxColumntelefoneDataGridViewTextBoxColumn;
 }
}
1.1.5 Consulta da classe Pessoa
namespace PimVIII
{
 partial class Consultar
 {
 /// <summary>
 /// Required designer variable.
 /// </summary>
 private System.ComponentModel.IContainer components = null;
 /// <summary>
 /// Clean up any resources being used.
 /// </summary>
 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
 protected override void Dispose(bool disposing)
 {
 if (disposing && (components != null))
 {
 components.Dispose();
 }
 base.Dispose(disposing);
 }
 #region Windows Form Designer generated code
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
 this.label1 = new System.Windows.Forms.Label();
 this.txtConsultaCPF = new System.Windows.Forms.TextBox();
 this.btnConsultar = new System.Windows.Forms.Button();
 this.btnRetornar = new System.Windows.Forms.Button();
 this.label2 = new System.Windows.Forms.Label();
 this.label3 = new System.Windows.Forms.Label();
 this.label4 = new System.Windows.Forms.Label();
 this.label5 = new System.Windows.Forms.Label();
 this.txtNomePesquisado = new System.Windows.Forms.TextBox();
 this.txtCpfPesquisado = new System.Windows.Forms.TextBox();
 this.txtEnderecoPesquisado = new System.Windows.Forms.TextBox();
 this.txtTelefonePesquiado = new System.Windows.Forms.TextBox();
 this.label6 = new System.Windows.Forms.Label();
 this.label7 = new System.Windows.Forms.Label();
 this.label8 = new System.Windows.Forms.Label();
 this.label9 = new System.Windows.Forms.Label();
 this.label10 = new System.Windows.Forms.Label();
 this.label11 = new System.Windows.Forms.Label();
 this.txtLogradouroPesquisado = new System.Windows.Forms.TextBox();
 this.txtNumeroCasaPesquisado = new System.Windows.Forms.TextBox();
 this.txtCepPesquisado = new System.Windows.Forms.TextBox();
 this.txtBairroPesquisado = new System.Windows.Forms.TextBox();
 this.txtEstadoPesquisado = new System.Windows.Forms.TextBox();
 this.txtCidadePesquisada = new System.Windows.Forms.TextBox();
 this.txtNroTelPesquisado = new System.Windows.Forms.TextBox();
 this.txtDddPesquisado = new System.Windows.Forms.TextBox();
 this.txtTipoPesquisado = new System.Windows.Forms.TextBox();
 this.label12 = new System.Windows.Forms.Label();
 this.label13 = new System.Windows.Forms.Label();
 this.label14 = new System.Windows.Forms.Label();
 this.btnAlterarDados = new System.Windows.Forms.Button();
 this.SuspendLayout();
 // 
 // label1
 // 
 this.label1.AutoSize = true;
 this.label1.Location = new System.Drawing.Point(30, 32);
 this.label1.Name = "label1";
 this.label1.Size = new System.Drawing.Size(133, 13);
 this.label1.TabIndex = 0;
 this.label1.Text = "Digite o CPF para consulta";
 // 
 // txtConsultaCPF
 // 
 this.txtConsultaCPF.Location = new System.Drawing.Point(33, 65);
 this.txtConsultaCPF.Name = "txtConsultaCPF";
 this.txtConsultaCPF.Size = new System.Drawing.Size(130, 20);
 this.txtConsultaCPF.TabIndex = 1;
 // 
 // btnConsultar
 // 
 this.btnConsultar.Location = new System.Drawing.Point(182, 32);
 this.btnConsultar.Name = "btnConsultar";
 this.btnConsultar.Size = new System.Drawing.Size(140, 53);
 this.btnConsultar.TabIndex = 2;
 this.btnConsultar.Text = "Consultar cadastro";
 this.btnConsultar.UseVisualStyleBackColor = true;
 this.btnConsultar.Click += new System.EventHandler(this.btnConsultar_Click);
 // 
 // btnRetornar
 // 
 this.btnRetornar.Location = new System.Drawing.Point(508, 39);
 this.btnRetornar.Name = "btnRetornar";
 this.btnRetornar.Size = new System.Drawing.Size(186, 39);
 this.btnRetornar.TabIndex = 4;
 this.btnRetornar.Text = "Retornar ao MENU";
 this.btnRetornar.UseVisualStyleBackColor = true;
 this.btnRetornar.Click += new System.EventHandler(this.btnRetornar_Click);
 // 
 // label2
 // 
 this.label2.AutoSize = true;
 this.label2.Location = new System.Drawing.Point(44, 139);
 this.label2.Name = "label2";
 this.label2.Size = new System.Drawing.Size(38, 13);
 this.label2.TabIndex = 5;
 this.label2.Text = "Nome:";
 // 
 // label3
 // 
 this.label3.AutoSize = true;
 this.label3.Location = new System.Drawing.Point(52, 169);
 this.label3.Name = "label3";
 this.label3.Size = new System.Drawing.Size(30, 13);
 this.label3.TabIndex = 5;
 this.label3.Text = "CPF:";
 // 
 // label4
 // 
 this.label4.AutoSize = true;
 this.label4.Location = new System.Drawing.Point(30, 201);
 this.label4.Name = "label4";
 this.label4.Size = new System.Drawing.Size(56, 13);
 this.label4.TabIndex = 5;
 this.label4.Text = "Endereço:";
 // 
 // label5
 // 
 this.label5.AutoSize = true;
 this.label5.Location = new System.Drawing.Point(30, 235);
 this.label5.Name = "label5";
 this.label5.Size = new System.Drawing.Size(52, 13);
 this.label5.TabIndex = 5;
 this.label5.Text = "Telefone:";
 // 
 // txtNomePesquisado
 // 
 this.txtNomePesquisado.Location = new System.Drawing.Point(94, 136);
 this.txtNomePesquisado.Name = "txtNomePesquisado";
 this.txtNomePesquisado.Size = new System.Drawing.Size(107, 20);
 this.txtNomePesquisado.TabIndex = 6;
 // 
 // txtCpfPesquisado
 // 
 this.txtCpfPesquisado.Location = new System.Drawing.Point(94, 169);
 this.txtCpfPesquisado.Name = "txtCpfPesquisado";
 this.txtCpfPesquisado.Size = new System.Drawing.Size(107, 20);
 this.txtCpfPesquisado.TabIndex = 6;
 // 
 // txtEnderecoPesquisado
 // 
 this.txtEnderecoPesquisado.Location = new System.Drawing.Point(94, 201);
 this.txtEnderecoPesquisado.Name = "txtEnderecoPesquisado";
 this.txtEnderecoPesquisado.Size = new System.Drawing.Size(32, 20);
 this.txtEnderecoPesquisado.TabIndex = 6;
 // 
 // txtTelefonePesquiado
 // 
 this.txtTelefonePesquiado.Location = new System.Drawing.Point(94, 232);
 this.txtTelefonePesquiado.Name = "txtTelefonePesquiado";
 this.txtTelefonePesquiado.Size = new System.Drawing.Size(32, 20);
 this.txtTelefonePesquiado.TabIndex = 6;
 // 
 // label6
 // 
 this.label6.AutoSize = true;
 this.label6.Location = new System.Drawing.Point(258, 139);
 this.label6.Name = "label6";
 this.label6.Size = new System.Drawing.Size(64, 13);
 this.label6.TabIndex = 7;
 this.label6.Text = "Logradouro:";
 // 
 // label7
 // 
 this.label7.AutoSize = true;this.label7.Location = new System.Drawing.Point(272, 172);
 this.label7.Name = "label7";
 this.label7.Size = new System.Drawing.Size(44, 13);
 this.label7.TabIndex = 7;
 this.label7.Text = "Número";
 // 
 // label8
 // 
 this.label8.AutoSize = true;
 this.label8.Location = new System.Drawing.Point(285, 201);
 this.label8.Name = "label8";
 this.label8.Size = new System.Drawing.Size(31, 13);
 this.label8.TabIndex = 7;
 this.label8.Text = "CEP:";
 // 
 // label9
 // 
 this.label9.AutoSize = true;
 this.label9.Location = new System.Drawing.Point(279, 235);
 this.label9.Name = "label9";
 this.label9.Size = new System.Drawing.Size(37, 13);
 this.label9.TabIndex = 7;
 this.label9.Text = "Bairro:";
 // 
 // label10
 // 
 this.label10.AutoSize = true;
 this.label10.Location = new System.Drawing.Point(273, 267);
 this.label10.Name = "label10";
 this.label10.Size = new System.Drawing.Size(43, 13);
 this.label10.TabIndex = 7;
 this.label10.Text = "Cidade:";
 // 
 // label11
 // 
 this.label11.AutoSize = true;
 this.label11.Location = new System.Drawing.Point(272, 299);
 this.label11.Name = "label11";
 this.label11.Size = new System.Drawing.Size(43, 13);
 this.label11.TabIndex = 7;
 this.label11.Text = "Estado:";
 // 
 // txtLogradouroPesquisado
 // 
 this.txtLogradouroPesquisado.Location = new System.Drawing.Point(328, 136);
 this.txtLogradouroPesquisado.Name = "txtLogradouroPesquisado";
 this.txtLogradouroPesquisado.Size = new System.Drawing.Size(129, 20);
 this.txtLogradouroPesquisado.TabIndex = 8;
 // 
 // txtNumeroCasaPesquisado
 // 
 this.txtNumeroCasaPesquisado.Location = new System.Drawing.Point(328, 169);
 this.txtNumeroCasaPesquisado.Name = "txtNumeroCasaPesquisado";
 this.txtNumeroCasaPesquisado.Size = new System.Drawing.Size(129, 20);
 this.txtNumeroCasaPesquisado.TabIndex = 8;
 // 
 // txtCepPesquisado
 // 
 this.txtCepPesquisado.Location = new System.Drawing.Point(328, 201);
 this.txtCepPesquisado.Name = "txtCepPesquisado";
 this.txtCepPesquisado.Size = new System.Drawing.Size(129, 20);
 this.txtCepPesquisado.TabIndex = 8;
 // 
 // txtBairroPesquisado
 // 
 this.txtBairroPesquisado.Location = new System.Drawing.Point(328, 235);
 this.txtBairroPesquisado.Name = "txtBairroPesquisado";
 this.txtBairroPesquisado.Size = new System.Drawing.Size(129, 20);
 this.txtBairroPesquisado.TabIndex = 8;
 // 
 // txtEstadoPesquisado
 // 
 this.txtEstadoPesquisado.Location = new System.Drawing.Point(328, 299);
 this.txtEstadoPesquisado.Name = "txtEstadoPesquisado";
 this.txtEstadoPesquisado.Size = new System.Drawing.Size(129, 20);
 this.txtEstadoPesquisado.TabIndex = 8;
 // 
 // txtCidadePesquisada
 // 
 this.txtCidadePesquisada.Location = new System.Drawing.Point(328, 267);
 this.txtCidadePesquisada.Name = "txtCidadePesquisada";
 this.txtCidadePesquisada.Size = new System.Drawing.Size(129, 20);
 this.txtCidadePesquisada.TabIndex = 8;
 // 
 // txtNroTelPesquisado
 // 
 this.txtNroTelPesquisado.Location = new System.Drawing.Point(563, 139);
 this.txtNroTelPesquisado.Name = "txtNroTelPesquisado";
 this.txtNroTelPesquisado.Size = new System.Drawing.Size(100, 20);
 this.txtNroTelPesquisado.TabIndex = 9;
 // 
 // txtDddPesquisado
 // 
 this.txtDddPesquisado.Location = new System.Drawing.Point(563, 169);
 this.txtDddPesquisado.Name = "txtDddPesquisado";
 this.txtDddPesquisado.Size = new System.Drawing.Size(100, 20);
 this.txtDddPesquisado.TabIndex = 9;
 // 
 // txtTipoPesquisado
 // 
 this.txtTipoPesquisado.Location = new System.Drawing.Point(563, 198);
 this.txtTipoPesquisado.Name = "txtTipoPesquisado";
 this.txtTipoPesquisado.Size = new System.Drawing.Size(100, 20);
 this.txtTipoPesquisado.TabIndex = 9;
 // 
 // label12
 // 
 this.label12.AutoSize = true;
 this.label12.Location = new System.Drawing.Point(505, 139);
 this.label12.Name = "label12";
 this.label12.Size = new System.Drawing.Size(52, 13);
 this.label12.TabIndex = 10;
 this.label12.Text = "Telefone:";
 // 
 // label13
 // 
 this.label13.AutoSize = true;
 this.label13.Location = new System.Drawing.Point(513, 172);
 this.label13.Name = "label13";
 this.label13.Size = new System.Drawing.Size(34, 13);
 this.label13.TabIndex = 10;
 this.label13.Text = "DDD:";
 // 
 // label14
 // 
 this.label14.AutoSize = true;
 this.label14.Location = new System.Drawing.Point(513, 201);
 this.label14.Name = "label14";
 this.label14.Size = new System.Drawing.Size(31, 13);
 this.label14.TabIndex = 10;
 this.label14.Text = "Tipo:";
 // 
 // btnAlterarDados
 // 
 this.btnAlterarDados.Location = new System.Drawing.Point(347, 32);
 this.btnAlterarDados.Name = "btnAlterarDados";
 this.btnAlterarDados.Size = new System.Drawing.Size(129, 53);
 this.btnAlterarDados.TabIndex = 11;
 this.btnAlterarDados.Text = "Alterar cadastro";
 this.btnAlterarDados.UseVisualStyleBackColor = true;
 this.btnAlterarDados.Click += new System.EventHandler(this.btnAlterarDados_Click);
 // 
 // Consultar
 // 
 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
 this.ClientSize = new System.Drawing.Size(800, 450);
 this.Controls.Add(this.btnAlterarDados);
 this.Controls.Add(this.label14);
 this.Controls.Add(this.label13);
 this.Controls.Add(this.label12);
 this.Controls.Add(this.txtTipoPesquisado);
 this.Controls.Add(this.txtDddPesquisado);
 this.Controls.Add(this.txtNroTelPesquisado);
 this.Controls.Add(this.txtCidadePesquisada);
 this.Controls.Add(this.txtEstadoPesquisado);
 this.Controls.Add(this.txtBairroPesquisado);
 this.Controls.Add(this.txtCepPesquisado);
 this.Controls.Add(this.txtNumeroCasaPesquisado);
 this.Controls.Add(this.txtLogradouroPesquisado);
 this.Controls.Add(this.label11);
 this.Controls.Add(this.label10);
 this.Controls.Add(this.label9);
 this.Controls.Add(this.label8);
 this.Controls.Add(this.label7);
 this.Controls.Add(this.label6);
 this.Controls.Add(this.txtTelefonePesquiado);
 this.Controls.Add(this.txtEnderecoPesquisado);
 this.Controls.Add(this.txtCpfPesquisado);
 this.Controls.Add(this.txtNomePesquisado);
 this.Controls.Add(this.label5);
 this.Controls.Add(this.label4);
 this.Controls.Add(this.label3);
 this.Controls.Add(this.label2);this.Controls.Add(this.btnRetornar);
 this.Controls.Add(this.btnConsultar);
 this.Controls.Add(this.txtConsultaCPF);
 this.Controls.Add(this.label1);
 this.Name = "Consultar";
 this.Text = "Form1";
 this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
 this.ResumeLayout(false);
 this.PerformLayout();
 }
 #endregion
 private System.Windows.Forms.Label label1;
 private System.Windows.Forms.TextBox txtConsultaCPF;
 private System.Windows.Forms.Button btnConsultar;
 private System.Windows.Forms.Button btnRetornar;
 private System.Windows.Forms.Label label2;
 private System.Windows.Forms.Label label3;
 private System.Windows.Forms.Label label4;
 private System.Windows.Forms.Label label5;
 private System.Windows.Forms.TextBox txtNomePesquisado;
 private System.Windows.Forms.TextBox txtCpfPesquisado;
 private System.Windows.Forms.TextBox txtEnderecoPesquisado;
 private System.Windows.Forms.TextBox txtTelefonePesquiado;
 private System.Windows.Forms.Label label6;
 private System.Windows.Forms.Label label7;
 private System.Windows.Forms.Label label8;
 private System.Windows.Forms.Label label9;
 private System.Windows.Forms.Label label10;
 private System.Windows.Forms.Label label11;
 private System.Windows.Forms.TextBox txtLogradouroPesquisado;
 private System.Windows.Forms.TextBox txtNumeroCasaPesquisado;
 private System.Windows.Forms.TextBox txtCepPesquisado;
 private System.Windows.Forms.TextBox txtBairroPesquisado;
 private System.Windows.Forms.TextBox txtEstadoPesquisado;
 private System.Windows.Forms.TextBox txtCidadePesquisada;
 private System.Windows.Forms.TextBox txtNroTelPesquisado;
 private System.Windows.Forms.TextBox txtDddPesquisado;
 private System.Windows.Forms.TextBox txtTipoPesquisado;
 private System.Windows.Forms.Label label12;
 private System.Windows.Forms.Label label13;
 private System.Windows.Forms.Label label14;
 private System.Windows.Forms.Button btnAlterarDados;
 }
}
Fig. 0 – Tela de Consulta de cadastro do sistema em C#. Fonte: Autores. 2021.
1.1.5 Cadastro da classe Pessoa
using System;
using System.Windows.Forms;
using CamadaModelo;
using PessoaDAO;
namespace PimVIII
{
 public partial class Inserir : Form
 {
 public Inserir()
 {
 InitializeComponent();
 }
 private void btnCadastra_Click(object sender, EventArgs e)
 {
 mdlPessoa _mdlPessoa = new mdlPessoa();
 mdlEndereco _mdlEndereco = new mdlEndereco();
 mdlTelefone _mdlTelefone = new mdlTelefone();
 PessoaDao _PessoaDao = new PessoaDao();
 
 
 if ((txtNome.Text != "") && (txtCPF.Text != "") && (txtEndereco.Text != "") && (txtTelefone.Text != ""))
 {
 try
 {
 _mdlPessoa.nome = txtNome.Text;
 _mdlPessoa.cpf = Convert.ToInt64(txtCPF.Text);
 _mdlPessoa.endereco = Convert.ToInt32(txtEndereco.Text);
 _mdlPessoa.telefone = Convert.ToInt32(txtTelefone.Text);
 _PessoaDao.CadastrarPessoa(_mdlPessoa);
 MessageBox.Show("Dados da pessoa inseridos com sucesso!");
 }
 catch (Exception erro)
 {
 MessageBox.Show("Erro ao cadastrar pessoa: " + erro.Message);
 }
 }
 
 if ((txtLogradouro.Text != "") && (txtNumero.Text != "") && (txtCEP.Text != "") && (txtBairro.Text != "") && (txtCidade.Text != "") && (txtEstado.Text != ""))
 {
 try
 {
 _mdlEndereco.logradouro = txtLogradouro.Text;
 _mdlEndereco.numeroCasa = Convert.ToInt32(txtNumero.Text);
 _mdlEndereco.cep = Convert.ToInt64(txtCEP.Text);
 _mdlEndereco.bairro = txtBairro.Text;
 _mdlEndereco.cidade = txtCidade.Text;
 _mdlEndereco.estado = txtEstado.Text;
 _PessoaDao.CadastrarEndereco(_mdlEndereco);
 MessageBox.Show("Endereço cadastrado com sucesso!");
 }
 catch (Exception erro)
 {
 MessageBox.Show("Erro ao cadastrar endereço: " + erro.Message);
 }
 } 
 if ((txtNroTelefone.Text != "") && (txtDDD.Text !="") && (txtTipoTelefone.Text != ""))
 {
 try
 {
 _mdlTelefone.telefone = Convert.ToInt32(txtNroTelefone.Text);
 _mdlTelefone.ddd = Convert.ToInt32(txtDDD.Text);
 _mdlTelefone.tipo = txtTipoTelefone.Text;
 _PessoaDao.CadastrarTelefone(_mdlTelefone);
 MessageBox.Show("Telefone cadastrado com sucesso!");
 }
 catch (Exception erro)
 {
 MessageBox.Show("Erro ao cadastrar telefone: " + erro.Message);
 }
 }
 txtNome.Text = string.Empty;
 txtCPF.Text = string.Empty;
 txtEndereco.Text = string.Empty;
 txtTelefone.Text = string.Empty;
 txtLogradouro.Text = string.Empty;
 txtNumero.Text = string.Empty;
 txtCEP.Text = string.Empty;
 txtBairro.Text = string.Empty;
 txtCidade.Text = string.Empty;
 txtEstado.Text = string.Empty;
 txtNroTelefone.Text = string.Empty;
 txtDDD.Text = string.Empty;
 txtTipoTelefone.Text = string.Empty;
 txtNome.Focus();
 }
 private void btnRetornar_Click(object sender, EventArgs e)
 {
 this.Close();
 }
 
 private void Inserir_Load(object sender, EventArgs e)
 {
 // TODO: esta linha de código carrega dados na tabela 'dbPessoasDataSet2.TELEFONE'. Você pode movê-la ou removê-la conforme necessário.
 this.tELEFONETableAdapter.Fill(this.dbPessoasDataSet2.TELEFONE);
 // TODO: esta linha de código carrega dados na tabela 'dbPessoasDataSet1.ENDERECO'. Você pode movê-la ou removê-la conforme necessário.
 this.eNDERECOTableAdapter.Fill(this.dbPessoasDataSet1.ENDERECO);
 // TODO: esta linha de código carrega dados na tabela 'dbPessoasDataSet.PESSOA'. Você pode movê-la ou removê-la conforme necessário.
 this.pESSOATableAdapter.Fill(this.dbPessoasDataSet.PESSOA);
 }
 }
}
2. CONEXÃO COM O BANCO DE DADOS
O Banco de dados utilizado neste projeto CRUD foi o Microsoft Acess, foi escrito toda a conexão com linguagem C#. Neste trecho do sistema foi responsável pelo acesso, gravação dos dados, exclusão e alteração dos dados do objeto Pessoa, de acordo com os diagramas disponíveis no Manual do PIM-VIII.
2.1 Diagramas
Fig. 1 – Diagrama de entidade relacional do trecho de banco de dados para realização da conexão em C#. Fonte: Manual do PIM VIII. 2021.
Fig. 1 – Diagrama de classes do trecho de banco de dados para realização da conexão em C#. Fonte: Manual do PIM VIII. 2021.
2.2 Scripts de conexão como banco de dados em C#
Para cadastrar os dados como nome, endereço e CPF, na tabela pessoas foi utilizado o seguinte script em C# para conexão com o banco de dados Microsoft Acess: 
//conexão com o banco de dados
(COLOCAR O CODIGOS DE CONEXAO DO BANCO DE DADOS)
3. PROTÓTIPO DE INTERFACE GRÁFICA ASP.NET
Segundo

Continue navegando