예제 #1
0
파일: Stickers.cs 프로젝트: AramisIT/FMCG
 private bool printSticker(Stickers sticker)
 {
     var stickersCreator = new StickersPrintingHelper(new List<Stickers>() { sticker });
     return stickersCreator.Print();
 }
예제 #2
0
        private static void printStickers(List<Stickers> stickers)
        {
            var stickersCreator = new StickersPrintingHelper(stickers);

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