internal void PrintBarcode() { var printingPage = new BarcodePrintPreview(ViewModel.SelectedMainRow, 3, (LoggedUserInfo.BarcodeSettingHeader.Code), true); var currentUi = Thread.CurrentThread.CurrentUICulture; printingPage.FlowDirection = currentUi.DisplayName == "العربية" ? FlowDirection.RightToLeft : FlowDirection.LeftToRight; printingPage.Show(); }
private void webService_PrintingFabricDefectsCompleted(object sender, PrintingFabricDefectsCompletedEventArgs e) { var printingPage = new BarcodePrintPreview(e.DefectsList.ToList(), e.Result, 1, (LoggedUserInfo.BarcodeSettingHeader.Code), true); var currentUi = Thread.CurrentThread.CurrentUICulture; printingPage.FlowDirection = currentUi.DisplayName == "العربية" ? FlowDirection.RightToLeft : FlowDirection.LeftToRight; printingPage.Show(); }
private void BtnprintCheque_OnClick(object sender, RoutedEventArgs e) { _viewModel.Glclient.PrintCheckAsync(_viewModel.SelectedDetailRow.Iserial, LoggedUserInfo.DatabasEname); _viewModel.Glclient.PrintCheckCompleted += (s, sv) => { var printingPage = new BarcodePrintPreview(sv.Result, 4, (_viewModel.SelectedMainRow.Code), true); var currentUi = Thread.CurrentThread.CurrentUICulture; printingPage.FlowDirection = currentUi.DisplayName == "العربية" ? FlowDirection.RightToLeft : FlowDirection.LeftToRight; printingPage.Show(); }; }