private static void Manager_FailedToDelete(object sender, FailedToDeleteEventArgs e) { Console.WriteLine(e.ErrorMessage); }
// <summary> /// Raise an event /// </summary> /// <param name="eventHandler">The event you would like to raise</param> /// <param name="args">The event arguments</param> private void RaiseAnEvent(EventHandler <FailedToDeleteEventArgs> eventHandler, FailedToDeleteEventArgs args) { //If event is not null then raise it eventHandler?.Invoke(this, args); }