Beispiel #1
0
 private void Rotation_SelectedIndexChanged(object sender, System.EventArgs e)
 {
     if (Rotation.Text == "Normal")
     {
         CurrentRotation = PrintRotation.Normal;
     }
     else if (Rotation.Text == "Right90")
     {
         CurrentRotation = PrintRotation.Right90;
     }
     else if (Rotation.Text == "Left90")
     {
         CurrentRotation = PrintRotation.Left90;
     }
     else if (Rotation.Text == "Rotate180")
     {
         CurrentRotation = PrintRotation.Rotate180;
     }
     else if (Rotation.Text == "BitmapRight90")
     {
         CurrentRotation = PrintRotation.Bitmap | PrintRotation.Right90;
     }
     else if (Rotation.Text == "BitmapLeft90")
     {
         CurrentRotation = PrintRotation.Bitmap | PrintRotation.Left90;
     }
     else if (Rotation.Text == "BitmapRotate180")
     {
         CurrentRotation = PrintRotation.Bitmap | PrintRotation.Rotate180;
     }
     else if (Rotation.Text == "BarcodeRight90")
     {
         CurrentRotation = PrintRotation.Barcode | PrintRotation.Right90;
     }
     else if (Rotation.Text == "BarcodeLeft90")
     {
         CurrentRotation = PrintRotation.Barcode | PrintRotation.Left90;
     }
     else if (Rotation.Text == "BarcodeRotate180")
     {
         CurrentRotation = PrintRotation.Barcode | PrintRotation.Rotate180;
     }
     else if (Rotation.Text == "BitmapBarcodeRight90")
     {
         CurrentRotation = PrintRotation.Bitmap | PrintRotation.Barcode | PrintRotation.Right90;
     }
     else if (Rotation.Text == "BitmapBarcodeLeft90")
     {
         CurrentRotation = PrintRotation.Bitmap | PrintRotation.Barcode | PrintRotation.Left90;
     }
     else if (Rotation.Text == "BitmapBarcodeRotate180")
     {
         CurrentRotation = PrintRotation.Bitmap | PrintRotation.Barcode | PrintRotation.Rotate180;
     }
 }
 public override void RotatePrint(PrinterStation station, PrintRotation rotation)
 {
     VerifyResult(_cco.RotatePrint((int)station, (int)rotation));
 }
 private void Rotation_SelectedIndexChanged(object sender, System.EventArgs e)
 {
     if (Rotation.Text == "Normal")
         CurrentRotation = PrintRotation.Normal;
     else if (Rotation.Text == "Right90")
         CurrentRotation = PrintRotation.Right90;
     else if (Rotation.Text == "Left90")
         CurrentRotation = PrintRotation.Left90;
     else if (Rotation.Text == "Rotate180")
         CurrentRotation = PrintRotation.Rotate180;
     else if (Rotation.Text == "BitmapRight90")
         CurrentRotation = PrintRotation.Bitmap | PrintRotation.Right90;
     else if (Rotation.Text == "BitmapLeft90")
         CurrentRotation = PrintRotation.Bitmap | PrintRotation.Left90;
     else if (Rotation.Text == "BitmapRotate180")
         CurrentRotation = PrintRotation.Bitmap | PrintRotation.Rotate180;
     else if (Rotation.Text == "BarcodeRight90")
         CurrentRotation = PrintRotation.Barcode | PrintRotation.Right90;
     else if (Rotation.Text == "BarcodeLeft90")
         CurrentRotation = PrintRotation.Barcode | PrintRotation.Left90;
     else if (Rotation.Text == "BarcodeRotate180")
         CurrentRotation = PrintRotation.Barcode | PrintRotation.Rotate180;
     else if (Rotation.Text == "BitmapBarcodeRight90")
         CurrentRotation = PrintRotation.Bitmap | PrintRotation.Barcode | PrintRotation.Right90;
     else if (Rotation.Text == "BitmapBarcodeLeft90")
         CurrentRotation = PrintRotation.Bitmap | PrintRotation.Barcode | PrintRotation.Left90;
     else if (Rotation.Text == "BitmapBarcodeRotate180")
         CurrentRotation = PrintRotation.Bitmap | PrintRotation.Barcode | PrintRotation.Rotate180;
 }