Beispiel #1
0
        private void AddToPreset(Preset preset)
        {
            if (Mod.IsInOriginalInstallation())
            {
                MessageBox.Show("This mod cannot be added to a preset, as it is part of the core of Cortex Command.", "Notice", MessageBoxButton.OK, MessageBoxImage.Exclamation);
                return;
            }

            presetManager.AddModToPreset(Mod, preset);

            if (OnAddedToPreset != null)
            {
                OnAddedToPreset(preset);
            }
        }