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

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