Esempio n. 1
0
 protected virtual void OnEndPrint(PrintEventArgs e) => EndPrint?.Invoke(this, e);
Esempio n. 2
0
        protected virtual void OnPrinted(PrintEventArgs e)
        {
            EventHandler <PrintEventArgs> temp = Printing;

            Printing?.Invoke(this, e);
        }
Esempio n. 3
0
 protected virtual void OnStartPrint(PrintEventArgs e) => StartPrint?.Invoke(this, e);
Esempio n. 4
0
        /// <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);
 }
Esempio n. 7
0
 public void StartPrinting(object sender, PrintEventArgs e)
 {
     Console.WriteLine($"Start printing, message: {e.PrintingArg}");
 }