// NO MERGE // Taken from the .NET Runtime Repository // https://github.com/dotnet/runtime // Copyright (c) .NET Foundation and Contributors // Under the MIT License #if FIVEM using System; namespace LemonUI // Previously System.ComponentModel { /// /// Represents the method that will handle the event raised when canceling an event. /// public delegate void CancelEventHandler(object sender, CancelEventArgs e); /// /// EventArgs used to describe a cancel event. /// public class CancelEventArgs : EventArgs { /// /// Gets or sets a value indicating whether we should cancel the operation or not /// public bool Cancel { get; set; } /// /// Default constructor /// public CancelEventArgs() { } /// /// Helper constructor /// /// public CancelEventArgs(bool cancel) => Cancel = cancel; } } #endif