Exemple #1
0
        void removeBtn_Click(object sender, EventArgs e)
        {
            var selectedGroup = TryGetSelected();

            if (selectedGroup != null)
            {
                if (
                    MessageBox.Show(
                        "Selected group will be removed, along with any timers and their settings. Confirm?",
                        "Confirm removal",
                        MessageBoxButtons.YesNoCancel,
                        MessageBoxIcon.Warning) == DialogResult.Yes)
                {
                    timersFeature.RemovePlayerGroup(selectedGroup.Id);
                    RebuildGroups();
                }
            }
        }