Example #1
0
        public void OnUserSelection(PopupMessageBox.PopupResult result, MessageType type, PrinterSerialNumber sn, object data)
        {
            PrinterObject printerBySerialNumber = GetPrinterBySerialNumber(sn.ToString());

            if (printerBySerialNumber == null || type != MessageType.WarningABSPrintLarge || (printerBySerialNumber == null || !printerBySerialNumber.IsConnected()))
            {
                return;
            }

            if (result == PopupMessageBox.PopupResult.Button1_YesOK)
            {
                var num1 = (int)printerBySerialNumber.ClearCurrentWarning(null, null);
            }
            else
            {
                var num2 = (int)printerBySerialNumber.AbortPrint(null, null);
            }
        }