Ejemplo n.º 1
0
        private void B_ActivateAll_Click(object sender, EventArgs e)
        {
            bool alt = (ModifierKeys & Keys.Alt) != 0;

            if (alt)
            {
                if ((ModifierKeys & Keys.Control) == 0)
                {
                    Raids.DectivateAllRaids();
                    LoadDen(CB_Den.SelectedIndex);
                }
                var txt    = Raids.DumpAll();
                var concat = string.Join(Environment.NewLine, txt);
                if (WinFormsUtil.SetClipboardText(concat))
                {
                    System.Media.SystemSounds.Asterisk.Play();
                }
                return;
            }

            bool rare    = (ModifierKeys & Keys.Control) != 0;
            bool isEvent = (ModifierKeys & Keys.Shift) != 0;

            Raids.ActivateAllRaids(rare, isEvent);
            LoadDen(CB_Den.SelectedIndex);
        }