Exemplo n.º 1
0
        private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e)
        {
            DialogResult d = UtilityClass.GetDeleteDialog("User");

            if (DialogResult.Yes == d)
            {
                if (ActionClass.DeleteUser((User)userBindingSource.Current))
                {
                    userBindingSource.RemoveCurrent();
                    MessageBox.Show("Delete record successfull.", "Delete", MessageBoxButtons.OK,
                                    MessageBoxIcon.Information);
                }
            }
        }