Exemple #1
0
 /// <summary>
 /// Cuts the paper.
 /// </summary>
 /// <param name="cutPaperType">One of the <see cref="CutPaperType"/> values.</param>
 public override void CutPaper(CutPaperType cutPaperType)
 {
     if (cutPaperType == CutPaperType.Full)
     {
         Print("\x1B\x69");
     }
     else
     {
         throw new InvalidOperationException($"The value {cutPaperType} is not supported on this printer.");
     }
 }
 /// <summary>
 /// Cuts the paper.
 /// </summary>
 /// <param name="cutPaperType">One of the <see cref="CutPaperType"/> values.</param>
 public abstract void CutPaper(CutPaperType cutPaperType);