private void SetPaperSize(PaperSize paperSize) { SharedInformationManager.SetSelectedPaperSize(paperSize, PrinterPriority); }
private void CopyProperty(ReceiptInformationManager source) { Language = new Language(source.Language.Type); PaperSize = new PaperSize(source.PaperSize.Type); }
private ModelInformation DecideModel(PortInfo portInfo) { PrinterModel model = ModelFinder.FindPrinterModel(portInfo.ModelName); bool isDecideModel = false; if (model != PrinterModel.Unknown) { isDecideModel = ShowModelConfirmWindow(model); } ModelInformation modelInformation; if (isDecideModel) { modelInformation = new ModelInformation(model); } else { modelInformation = ShowSelectModelWindow(); } if (modelInformation == null) { return(null); } PaperSize selectedPaperSize = ShowSelectPaperSizeWindowIfNeed(modelInformation); if (selectedPaperSize == null) { return(null); } SetPaperSize(selectedPaperSize); if (modelInformation.ChangeCashDrawerPolarityIsEnabled) { bool?drawerOpenStatus = ShowSelectDrawerOpenStatusWindow(); if (drawerOpenStatus == null) { return(null); } modelInformation.DrawerOpenStatus = (bool)drawerOpenStatus; } else { modelInformation.DrawerOpenStatus = true; } if (PortInfoManager.IsSerialPort(portInfo)) { string portSettings = ShowManualPortSettingsWindowForSerialPort(); if (portSettings == null) { return(null); } modelInformation.PortSettings = portSettings; } return(modelInformation); }
public static void SetPaperSize(PaperSize paperSize) { ReceiptInformationManager.PaperSize = paperSize; }