private void buttonDelete_Click(object sender, EventArgs e)
        {
            ClassData classData = new ClassData();

            classData.deleteMahasiswa(textBoxNim.Text);
            Clear();
            dtmhs.DataSource = classData.getAllData();
        }
        private void buttonUpdate_Click(object sender, EventArgs e)
        {
            Mahasiswa mhs = new Mahasiswa();

            mhs.nim      = textBoxNim.Text;
            mhs.nama     = textBoxNama.Text;
            mhs.prodi    = textBoxProdi.Text;
            mhs.angkatan = textBoxAngkatan.Text;

            ClassData classData = new ClassData();

            classData.updateDatabase(mhs);
            MessageBox.Show("Data successfuly updated");
            Clear();
            dtmhs.DataSource = classData.getAllData();
        }