Exemplo n.º 1
0
        private void Hapus_Click(object sender, EventArgs e)
        {
            var DeletedGrade       = table.SelectedItem as Models.izinDosen;
            var ConfirmationResult = MessageBox.Show(
                "Apakah anda ingin menghapus grade ini?",
                "Hapus grade",
                MessageBoxButton.YesNo
                );

            if (ConfirmationResult == MessageBoxResult.Yes)
            {
                ds.Delete(DeletedGrade);
            }
        }