void vm_PreviewNotice(object sender, SimpleMvvmToolkit.NotificationEventArgs <Core.Model.Order> e)
        {
            try
            {
                var flowDocument = PrintHelper.GetPrintDocument(e.Message, e.Data);
                var xps          = PrintHelper.GetXpsDocument(flowDocument);
                var document     = xps.GetFixedDocumentSequence();

                var previewWindow = new PreviewTicket();
                previewWindow.Owner = Application.Current.MainWindow;
                previewWindow.docViewer.Document = document;
                previewWindow.ShowDialog();
            }
            catch (Exception ex)
            {
                LogService.Error("Error while preview ticket", ex);
                MessageBox.Show(ex.Message);
            }
        }
        void vm_PreviewNotice(object sender, SimpleMvvmToolkit.NotificationEventArgs<Core.Model.Order> e)
        {
            try
            {
                var flowDocument = PrintHelper.GetPrintDocument(e.Message, e.Data);
                var xps = PrintHelper.GetXpsDocument(flowDocument);
                var document = xps.GetFixedDocumentSequence();

                var previewWindow = new PreviewTicket();
                previewWindow.Owner = Application.Current.MainWindow;
                previewWindow.docViewer.Document = document;
                previewWindow.ShowDialog();
            }
            catch (Exception ex)
            {
                LogService.Error("Error while preview ticket", ex);
                MessageBox.Show(ex.Message);
            }
        }