private void addStudentToolStripMenuItem_Click(object sender, EventArgs e) { AddStudent add = new AddStudent(_db); add.ShowDialog(); Update(); }
private void button2_Click(object sender, EventArgs e) { if (_db.Connected() == System.Data.ConnectionState.Open) { AddStudent add = new AddStudent(_db); add.ShowDialog(); } else { Utils.Error("MySQL Server is not working"); } }