private bool printSticker(Stickers sticker) { var stickersCreator = new StickersPrintingHelper(new List<Stickers>() { sticker }); return stickersCreator.Print(); }
private static void printStickers(List<Stickers> stickers) { var stickersCreator = new StickersPrintingHelper(stickers); (UserInterface.MainWindow as Form).Invoke(new Action(() => { stickersCreator.Print(); })); }
internal void PrintStickers(List<NomenclatureData> wareList) { List<Stickers> stickers = createStickers(wareList); Stickers.Rows.Clear(); stickers.ForEach(sticker => { var row = Stickers.GetNewRow(this); row.SetRefValueToRowCell(this, Sticker, sticker); row.AddRowToTable(this); }); if (Write() != WritingResult.Success) { "Невдала спроба запису документу. Спробуйте ще раз".WarningBox(); return; } var stickersCreator = new StickersPrintingHelper(stickers); stickersCreator.Print(); }