Beispiel #1
0
 private bool printSticker(Stickers sticker)
 {
     var stickersCreator = new StickersPrintingHelper(new List<Stickers>() { sticker });
     return stickersCreator.Print();
 }
Beispiel #2
0
        private static void printStickers(List<Stickers> stickers)
        {
            var stickersCreator = new StickersPrintingHelper(stickers);

            (UserInterface.MainWindow as Form).Invoke(new Action(() => { stickersCreator.Print(); }));
        }
Beispiel #3
0
        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();
        }