Exemple #1
0
        private List <string> AdjustCount(List <string> labelList)
        {
            if (labelList.Count % 4 == 0)
            {
                return(labelList);
            }

            var gaps = 4 - labelList.Count % 4;

            LabelGenerator labelGenerator = new LabelGenerator();
            var            emptyImage     = labelGenerator.GenerateEmpty();

            for (int i = 0; i < gaps; i++)
            {
                labelList.Add(emptyImage);
            }

            return(labelList);
        }
 public MainWindow()
 {
     InitializeComponent();
     generator = new LabelGenerator();
     printer   = new LabelPrinter();
 }