Exemple #1
0
        private void CreateLabelHelper()
        {
            //  Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Send, (SendOrPostCallback)delegate { View.StartSyncAnimation(); }, null);

            //  ReportEngine repEngine = _container.Resolve<ReportEngine>() as ReportEngine;
            List <WPFBarcode> wpfBarcode  = View.LabelData();
            LabelPrintHelper  printHelper = _container.Resolve <LabelPrintHelper>() as LabelPrintHelper;

            this.xpsRep = printHelper.CreateLabels(wpfBarcode, View.NumberAcross, View.NumberDown, View.TopMargin, View.SideMargin);
//            this.xpsRep = repEngine.CreateLabels(wpfBarcode, View.NumberAcross, View.NumberDown, View.TopMargin, View.SideMargin);

            this.DisplayLabels();
            //Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Send, (SendOrPostCallback)delegate { this.DisplayLabels(); }, null);
            //Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Send, (SendOrPostCallback)delegate { View.EndSyncAnimation(); }, null);
        }