示例#1
0
 private static void Manager_FailedToDelete(object sender, FailedToDeleteEventArgs e)
 {
     Console.WriteLine(e.ErrorMessage);
 }
示例#2
0
 // <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);
 }