Exemplo n.º 1
0
        //Command Delete
        private void CmdDelete_Click(object sender, EventArgs e)
        {
            var confirmResult = MessageBox.Show("Are you sure to delete this reminder?",
                                                "Delete Reminder",
                                                MessageBoxButtons.YesNo);

            if (confirmResult == DialogResult.Yes)
            {
                ReminderController.DeleteReminder(GetModelID(DgvReminderList));
                BuildList();
            }
        }