protected virtual void OnEndPrint(PrintEventArgs e) => EndPrint?.Invoke(this, e);
protected virtual void OnPrinted(PrintEventArgs e) { EventHandler <PrintEventArgs> temp = Printing; Printing?.Invoke(this, e); }
protected virtual void OnStartPrint(PrintEventArgs e) => StartPrint?.Invoke(this, e);
/// <summary> /// Raises the <see cref="E:PrintEnded" /> event. /// </summary> /// <param name="e">The <see cref="PrintEventArgs"/> instance containing the event data.</param> protected virtual void OnPrintEnded(PrintEventArgs e) { EventHandler <PrintEventArgs> temp = this.PrintEnd; temp?.Invoke(this, e); }
/// <summary> /// Raises the <see cref="E:EndPrint" /> event. /// </summary> /// <param name="args">The <see cref="PrintEventArgs"/> instance containing the event data.</param> protected virtual void OnEndPrint(PrintEventArgs args) { EndPrint.Invoke(this, args); }
/// <summary> /// Raises the <see cref="E:StartPrint" /> event. /// </summary> /// <param name="args">The <see cref="PrintEventArgs"/> instance containing the event data.</param> protected virtual void OnStartPrint(PrintEventArgs args) { StartPrint.Invoke(this, args); }
public void StartPrinting(object sender, PrintEventArgs e) { Console.WriteLine($"Start printing, message: {e.PrintingArg}"); }