private void Form1_Load(object sender, EventArgs e)
 {
     this.personDatabaseConnection = new PersonDatabaseConnection("SERVER=localhost;DATABASE=csharpdb;UID=root;PASSWORD=");
     this.dataGridView1.DataSource = this.personDatabaseConnection.GetAll();
     btnUpdate.Enabled             = false;
     btnDelete.Enabled             = false;
     txtFirstName.ReadOnly         = true;
     txtLastName.ReadOnly          = true;
     txtAge.ReadOnly = true;
 }
예제 #2
0
 private void Form2_Load(object sender, EventArgs e)
 {
     this.personDatabaseConnection = new PersonDatabaseConnection("SERVER=localhost;DATABASE=csharpdb;UID=root;PASSWORD=");
 }