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; }
private void Form2_Load(object sender, EventArgs e) { this.personDatabaseConnection = new PersonDatabaseConnection("SERVER=localhost;DATABASE=csharpdb;UID=root;PASSWORD="); }