예제 #1
0
        private void deleteLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            DialogResult dialog = MessageBox.Show("Are you sure you want to delete '" + this.group.name + "'?", "Deletion confirmation", MessageBoxButtons.YesNo);

            if (dialog != DialogResult.Yes)
            {
                return;
            }
            APIHandler.DeleteGroup(this.group);
            MessageBox.Show("Group has been deleted successfully.");
            ParentRefreshList();
        }