Beispiel #1
0
        private void ButtonHapusUser_Click(object sender, EventArgs e)
        {
            user   u      = new user();
            string title  = "Konfirmasi Penghapusan Data";
            string konten = "Apakah Anda yakin ingin menghapus data?";

            DialogResult result = MessageBox.Show(konten, title, MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (result == System.Windows.Forms.DialogResult.Yes)
            {
                u.hapusUser(id_user);
                setDataTable(u.getAllUser());
            }
        }