public CantCreateNewPreetEventArgs(CantCreateNewPresetReasons cantCreateNewPresetReason, Preset preset) { Preset = preset ?? throw new ArgumentNullException(); CantCreateNewPresetReason = cantCreateNewPresetReason; }
private void OnCantCreateNewPreset(CantCreateNewPresetReasons reason, Preset preset) { CantCreateNewPresetEvent?.Invoke(this, new CantCreateNewPreetEventArgs(reason, preset)); }