コード例 #1
0
        private void buttonPreset_Click(object sender, EventArgs e)
        {
            Preset preset = comboBoxPresets.SelectedItem as Preset;

            Task.Run(() =>
            {
                if (ModifierKeys == Keys.Alt)
                {
                    launcher.AttachPreset(preset);
                }
                else if (ModifierKeys == Keys.Control)
                {
                    launcher.WarmupPreset(preset);
                }
                else
                {
                    launcher.LaunchPreset(preset);
                }
            });
        }