void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.documentviewWord = ((System.Windows.Controls.DocumentViewer)(target)); return; case 2: this.bt_close = ((System.Windows.Controls.Image)(target)); return; case 3: this.bt1 = ((System.Windows.Controls.Image)(target)); return; case 4: this.bt2 = ((System.Windows.Controls.Image)(target)); return; case 5: this.img_cloud = ((System.Windows.Controls.Image)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Grid = ((System.Windows.Controls.Grid)(target)); return; case 2: this.DocumentViewer = ((System.Windows.Controls.DocumentViewer)(target)); return; case 3: this.ButtonScale = ((System.Windows.Controls.Button)(target)); #line 72 "..\..\..\UserControls\UserControlDisplay.xaml" this.ButtonScale.Click += new System.Windows.RoutedEventHandler(this.ButtonScale_Click); #line default #line hidden return; case 4: this.ButtonReturn = ((System.Windows.Controls.Button)(target)); #line 73 "..\..\..\UserControls\UserControlDisplay.xaml" this.ButtonReturn.Click += new System.Windows.RoutedEventHandler(this.ButtonReturn_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 10 "..\..\ReportWindow.xaml" ((ERPSystem.ReportWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.documentViewer = ((System.Windows.Controls.DocumentViewer)(target)); return; case 3: this.buttonDisplay = ((System.Windows.Controls.Button)(target)); #line 18 "..\..\ReportWindow.xaml" this.buttonDisplay.Click += new System.Windows.RoutedEventHandler(this.buttonDisplay_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.container = ((System.Windows.Controls.DocumentViewer)(target)); return; case 2: this.doc = ((System.Windows.Documents.FixedDocument)(target)); return; case 3: #line 35 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.saveClick); #line default #line hidden return; case 4: #line 36 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.loadClick); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 5 "..\..\XpsAnnotations.xaml" ((Documents.XpsAnnotations)(target)).Loaded += new System.Windows.RoutedEventHandler(this.window_Loaded); #line default #line hidden #line 5 "..\..\XpsAnnotations.xaml" ((Documents.XpsAnnotations)(target)).Unloaded += new System.Windows.RoutedEventHandler(this.window_Unloaded); #line default #line hidden return; case 2: this.docViewer = ((System.Windows.Controls.DocumentViewer)(target)); return; } this._contentLoaded = true; }
public void printing_2(Grid grid_table_print) { DocumentViewer documentViewer1 = new DocumentViewer(); FixedDocument fixedDoc = new FixedDocument(); PageContent pgc = new PageContent(); FixedPage fxp = new FixedPage(); //A4 fxp.Width = 11.69 * 96; fxp.Height = 8.27 * 96; StackPanel panel = new StackPanel(); panel.Orientation = Orientation.Vertical; panel.HorizontalAlignment = System.Windows.HorizontalAlignment.Center; panel.Width = (11.69 * 96) * 0.9; panel.Orientation = Orientation.Vertical; Thickness margin = panel.Margin; margin.Bottom = 0; margin.Left = 50; margin.Top = 50; margin.Right = 25; panel.Margin = margin; BitmapImage bmp_ = new BitmapImage(); Label test_lb = new Label(); test_lb.Content = "\n\n\t\t\tРежим расчетов \n \tОцифровка в автоматическом режиме"; margin = test_lb.Margin; margin.Bottom = 50; margin.Left = 50; margin.Top = 50; margin.Right = 0; test_lb.BorderThickness = margin; panel.Children.Add(test_lb); ImageSource imageSource = new BitmapImage(new Uri(Directory.GetCurrentDirectory() + "\\file.jpg")); Image img = new Image(); img.Source = imageSource; panel.Children.Add(img); Grid grid_table_print_copy = new Grid();// { DataContext = grid_table_print.DataContext }; string gridXaml = XamlWriter.Save(grid_table_print); StringReader stringReader = new StringReader(gridXaml); XmlReader xmlReader = XmlReader.Create(stringReader); grid_table_print_copy = (Grid)XamlReader.Load(xmlReader); panel.Children.Add(grid_table_print_copy); fxp.Children.Add(panel); ((System.Windows.Markup.IAddChild)pgc).AddChild(fxp); fixedDoc.Pages.Add(pgc); documentViewer1.Document = fixedDoc; Window ShowWindow = new Window(); ShowWindow.Width = 850; ShowWindow.Height = 850; ShowWindow.Content = documentViewer1; ShowWindow.Show(); }
private static void ShowXpsPreview(XpsDocument xpsDocument) { var previewWindow = new Window(); var docViewer = new DocumentViewer(); previewWindow.Content = docViewer; docViewer.Document = xpsDocument.GetFixedDocumentSequence(); previewWindow.ShowDialog(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MenuLabel = ((System.Windows.Controls.Label)(target)); return; case 2: this.SaveButton = ((System.Windows.Controls.Button)(target)); return; case 3: this.PrintButton = ((System.Windows.Controls.Button)(target)); return; case 4: this.CopyButton = ((System.Windows.Controls.Button)(target)); return; case 5: this.NextButton = ((System.Windows.Controls.Button)(target)); return; case 6: this.CancelButton = ((System.Windows.Controls.Button)(target)); return; case 7: this.MainTabControl = ((System.Windows.Controls.TabControl)(target)); return; case 8: this.PersonTabItem = ((System.Windows.Controls.TabItem)(target)); return; case 9: this.GeneralGroupBox = ((System.Windows.Controls.GroupBox)(target)); return; case 10: this.VehicleTabItem = ((System.Windows.Controls.TabItem)(target)); return; case 11: this.toolBar1 = ((System.Windows.Controls.ToolBar)(target)); return; case 12: this.richTextBox1 = ((System.Windows.Controls.RichTextBox)(target)); return; case 13: this.documentViewer1 = ((System.Windows.Controls.DocumentViewer)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.DocumentviewWord = ((System.Windows.Controls.DocumentViewer)(target)); return; } this._contentLoaded = true; }
//ClassicReportDocument doc; public XpsPreviewControl() { InitializeComponent(); viewer = new DocumentViewer(); host = new ElementHost(); host.Dock = System.Windows.Forms.DockStyle.Fill; host.Child = viewer; Controls.Add(host); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.documentViewer1 = ((System.Windows.Controls.DocumentViewer)(target)); return; } this._contentLoaded = true; }
public void DocViewerLoaded(DocumentViewer documentViewer) { try { ReportDocument reportDocument = new ReportDocument(); reportDocument.ImageProcessing += reportDocument_ImageProcessing; reportDocument.ImageError += reportDocument_ImageError; StreamReader reader = new StreamReader(new FileStream(@"Templates\EndoscopyResults.xaml", FileMode.Open, FileAccess.Read)); reportDocument.XamlData = reader.ReadToEnd(); reportDocument.XamlImagePath = Path.Combine(Environment.CurrentDirectory, @"Templates\"); reader.Close(); ReportData data = new ReportData(); //Clinic info if (_clinic != null) { data.ReportDocumentValues.Add("ClinicName", _clinic.Name.ToUpper()); data.ReportDocumentValues.Add("ClinicAddress", _clinic.Address); data.ReportDocumentValues.Add("ClinicPhone", _clinic.Phone); } //Patient info data.ReportDocumentValues.Add("PatientName", _patient.Name.ToUpper()); data.ReportDocumentValues.Add("BirthDay", "Ngày sinh: " + _patient.Birthday); data.ReportDocumentValues.Add("Address", _patient.Address); data.ReportDocumentValues.Add("Sex", "Giới tính: " + _patient.Sex); data.ReportDocumentValues.Add("Diagnose", _session.Diagnose); data.ReportDocumentValues.Add("Type", _esRecord.EndoscopyType.Name); //Endoscopy results data.ReportDocumentValues.Add("Result", _esRecord.Result); //Note string tmp = "Ngày " + string.Format("{0:dd}", _session.Date) + " tháng " + string.Format("{0:MM}", _session.Date) + " năm " + String.Format("{0:yyyy}", _session.Date); data.ReportDocumentValues.Add("Date", tmp); data.ReportDocumentValues.Add("DoctorName", _session.DoctorName); XpsDocument xps = reportDocument.CreateXpsDocument(data); documentViewer.Document = xps.GetFixedDocumentSequence(); } catch (Exception ex) { MessageBox.Show(ex.Message); } finally { IsBusyHidden = true; NotifyOfPropertyChange(() => IsBusyHidden); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.btnSelect = ((System.Windows.Controls.Button)(target)); #line 77 "..\..\ViewWord.xaml" this.btnSelect.Click += new System.Windows.RoutedEventHandler(this.btnSelectWord_Click); #line default #line hidden return; case 2: this.tbxPathname = ((System.Windows.Controls.TextBlock)(target)); return; case 3: this.btnViewDoc = ((System.Windows.Controls.Button)(target)); #line 80 "..\..\ViewWord.xaml" this.btnViewDoc.Click += new System.Windows.RoutedEventHandler(this.btnViewDoc_Click); #line default #line hidden return; case 4: this.btnAddcontent = ((System.Windows.Controls.Button)(target)); #line 81 "..\..\ViewWord.xaml" this.btnAddcontent.Click += new System.Windows.RoutedEventHandler(this.btnAddcontent_Click); #line default #line hidden return; case 5: this.btnExit = ((System.Windows.Controls.Button)(target)); #line 82 "..\..\ViewWord.xaml" this.btnExit.Click += new System.Windows.RoutedEventHandler(this.btnExit_Click); #line default #line hidden return; case 6: this.documentviewWord = ((System.Windows.Controls.DocumentViewer)(target)); return; } this._contentLoaded = true; }
public static void LoadDocumentViewer(string xpsFileName, DocumentViewer viewer) { XpsDocument oldXpsPackage = xpsPackage;//保存原来的XPS包 xpsPackage = new XpsDocument(xpsFileName, FileAccess.Read, CompressionOption.NotCompressed);//从文件中读取XPS文档 FixedDocumentSequence fixedDocumentSequence = xpsPackage.GetFixedDocumentSequence();//从XPS文档对象得到FixedDocumentSequence viewer.Document = fixedDocumentSequence as IDocumentPaginatorSource; if (oldXpsPackage != null) oldXpsPackage.Close(); xpsPackage.Close(); }
public void LeukemiaLymphomaSignoutPage_Loaded(object sender, RoutedEventArgs e) { UserInteractionMonitor.Instance.Register(this); YellowstonePathology.YpiConnect.Proxy.FlowSignoutServiceProxy flowSignoutServiceProxy = new Proxy.FlowSignoutServiceProxy(); XElement reportDocument = flowSignoutServiceProxy.GetLeukemiaLymphomaReportDocument(this.m_MasterAccessionNo); YellowstonePathology.Document.Result.Data.LeukemiaLymphomaReportData leukemialymphomaReportData = new Document.Result.Data.LeukemiaLymphomaReportData(this.m_ReportNo, reportDocument); YellowstonePathology.Document.Result.Xps.LeukemiaLymphomaReport leukemiaLymphomaReport = new Document.Result.Xps.LeukemiaLymphomaReport(leukemialymphomaReportData); System.Windows.Controls.DocumentViewer documentViewer = new System.Windows.Controls.DocumentViewer(); documentViewer.Document = leukemiaLymphomaReport.FixedDocument; this.DocumentViewerControl.Content = documentViewer; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.progress = ((System.Windows.Controls.ProgressBar)(target)); return; case 2: this.reportviewer = ((System.Windows.Controls.DocumentViewer)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.algorithm_introduction = ((MMAWPF.Algorithm)(target)); #line 4 "..\..\Algorithm.xaml" this.algorithm_introduction.Closing += new System.ComponentModel.CancelEventHandler(this.algorithm_introduction_Closing); #line default #line hidden #line 4 "..\..\Algorithm.xaml" this.algorithm_introduction.Closed += new System.EventHandler(this.algorithm_introduction_Closed); #line default #line hidden return; case 2: this.grid1 = ((System.Windows.Controls.Grid)(target)); return; case 3: this.treeView1 = ((System.Windows.Controls.TreeView)(target)); return; case 4: this.algorithm = ((System.Windows.Controls.TreeViewItem)(target)); return; case 5: this.documentViewer1 = ((System.Windows.Controls.DocumentViewer)(target)); return; case 6: this.documentViewer2 = ((System.Windows.Controls.DocumentViewer)(target)); return; case 7: this.gridSplitter1 = ((System.Windows.Controls.GridSplitter)(target)); return; case 8: this.gridSplitter2 = ((System.Windows.Controls.GridSplitter)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.lable1 = ((System.Windows.Controls.Label)(target)); return; case 2: this.txbSelectedWordFile = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.btnSelectWord = ((System.Windows.Controls.Button)(target)); #line 15 "..\..\..\MainWindow.xaml" this.btnSelectWord.Click += new System.Windows.RoutedEventHandler(this.btnSelectWord_Click); #line default #line hidden return; case 4: this.btnViewDoc = ((System.Windows.Controls.Button)(target)); #line 16 "..\..\..\MainWindow.xaml" this.btnViewDoc.Click += new System.Windows.RoutedEventHandler(this.btnViewDoc_Click); #line default #line hidden return; case 5: this.documentviewWord = ((System.Windows.Controls.DocumentViewer)(target)); return; case 6: this.create = ((System.Windows.Controls.Button)(target)); #line 18 "..\..\..\MainWindow.xaml" this.create.Click += new System.Windows.RoutedEventHandler(this.create_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.documentViewer1 = ((System.Windows.Controls.DocumentViewer)(target)); #line 11 "..\..\..\Page2.xaml" this.documentViewer1.PageViewsChanged += new System.EventHandler(this.documentViewer1_PageViewsChanged); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.documentViewer = ((System.Windows.Controls.DocumentViewer)(target)); #line 12 "..\..\ViewDocument.xaml" this.documentViewer.Loaded += new System.Windows.RoutedEventHandler(this.documentViewer_Loaded); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 4 "..\..\WindowMain.xaml" ((ImageReport.WindowMain)(target)).Activated += new System.EventHandler(this.Window_Activated); #line default #line hidden return; case 2: this.documentViewer = ((System.Windows.Controls.DocumentViewer)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 4 "..\..\Xps.xaml" ((Printing.Xps)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.docViewer = ((System.Windows.Controls.DocumentViewer)(target)); return; case 3: #line 15 "..\..\Xps.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.cmdShowFlow_Click); #line default #line hidden return; case 4: #line 16 "..\..\Xps.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.cmdPrintXps_Click); #line default #line hidden return; case 5: #line 17 "..\..\Xps.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.cmdPrintFlow_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this._MyDocumentViewer = ((TecCargo_Faktura.Controls.MyDocumentViewer)(target)); return; case 4: this.docviewer = ((System.Windows.Controls.DocumentViewer)(target)); return; case 5: this.Image_Loading = ((System.Windows.Controls.Image)(target)); return; } this._contentLoaded = true; }
static public void Display() { FixedPage fpage = App.LoadComponent(new Uri("Views/LostFormsMemo.xaml", UriKind.Relative)) as FixedPage; PageContent pagewrapper = new PageContent(); (pagewrapper as IAddChild).AddChild(fpage); FixedDocument doc = new FixedDocument(); doc.Pages.Add(pagewrapper); DocumentViewer docviewer = new DocumentViewer(); docviewer.Document = doc; docviewer.Zoom = 75; Window win = new Window(); win.Content = docviewer; win.Owner = App.Current.MainWindow; win.Width = (fpage.ActualWidth + 50) * 0.75;// docviewer.ExtentWidth + 50; //win.Height = fpage.ActualHeight; win.Show(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.toIndexButton = ((System.Windows.Controls.Button)(target)); #line 14 "..\..\ExamineDoc.xaml" this.toIndexButton.Click += new System.Windows.RoutedEventHandler(this.ToIndex_ButtonClick); #line default #line hidden return; case 2: this.problemTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.submitProblemButton = ((System.Windows.Controls.Button)(target)); #line 17 "..\..\ExamineDoc.xaml" this.submitProblemButton.Click += new System.Windows.RoutedEventHandler(this.SubmitProblem_ButtonClick); #line default #line hidden return; case 4: this.submitSucceedButton = ((System.Windows.Controls.Button)(target)); #line 18 "..\..\ExamineDoc.xaml" this.submitSucceedButton.Click += new System.Windows.RoutedEventHandler(this.RegularDoc_ButtonClick); #line default #line hidden return; case 5: this.documentViewer = ((System.Windows.Controls.DocumentViewer)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\..\..\Print\PAGE\Print.xaml" ((Labely.Print)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.documentViewer1 = ((System.Windows.Controls.DocumentViewer)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\Help_Schedule.xaml" ((My.University.Help_Schedule)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.documentViewer = ((System.Windows.Controls.DocumentViewer)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 11 "..\..\..\Windows\PrintWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OnExecutePrintPreviewExit); #line default #line hidden return; case 2: this.XpsPreview = ((System.Windows.Controls.DocumentViewer)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 7 "..\..\..\ClockConfiguratorGUI\UCinstruction.xaml" ((CMT.ClockConfiguratorGUI.UCinstruction)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.UserControl_SizeChanged); #line default #line hidden return; case 2: this._dcDoc = ((System.Windows.Controls.DocumentViewer)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.btnPrint = ((System.Windows.Controls.Button)(target)); #line 16 "..\..\Preview.xaml" this.btnPrint.Click += new System.Windows.RoutedEventHandler(this.btnPrint_Click); #line default #line hidden return; case 2: this.PreviewD = ((System.Windows.Controls.DocumentViewer)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.documentViewer1 = ((System.Windows.Controls.DocumentViewer)(target)); return; case 2: this.button1 = ((System.Windows.Controls.Button)(target)); #line 7 "..\..\Window1.xaml" this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click); #line default #line hidden return; case 3: this.button2 = ((System.Windows.Controls.Button)(target)); #line 8 "..\..\Window1.xaml" this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click); #line default #line hidden return; case 4: this.button3 = ((System.Windows.Controls.Button)(target)); #line 9 "..\..\Window1.xaml" this.button3.Click += new System.Windows.RoutedEventHandler(this.button3_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.rootWnd = ((TestNAudio.MainWindow)(target)); return; case 2: this.RootGrid = ((System.Windows.Controls.Grid)(target)); return; case 3: this.XpsViewer = ((System.Windows.Controls.DocumentViewer)(target)); return; case 4: this.PdfViewer = ((MoonPdfLib.MoonPdfPanel)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.SaveDoc = ((System.Windows.Controls.Button)(target)); return; case 2: this.GenerateDocs = ((System.Windows.Controls.Button)(target)); #line 12 "..\..\DocGen.xaml" this.GenerateDocs.Click += new System.Windows.RoutedEventHandler(this.GenerateDocs_Click); #line default #line hidden return; case 3: this.GetDoc = ((System.Windows.Controls.Button)(target)); #line 13 "..\..\DocGen.xaml" this.GetDoc.Click += new System.Windows.RoutedEventHandler(this.GetDoc_Click); #line default #line hidden return; case 4: this.FilePath = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.documentViewWord = ((System.Windows.Controls.DocumentViewer)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\..\reports\BangDiem_Report.xaml" ((QuanLyHS_THPT.reports.BangDiem_Report)(target)).Activated += new System.EventHandler(this.Window_Activated); #line default #line hidden return; case 2: this.busyDecorator = ((CodeReason.Reports.Controls.BusyDecorator)(target)); return; case 3: this.documentViewer = ((System.Windows.Controls.DocumentViewer)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.viewer = ((System.Windows.Controls.DocumentViewer)(target)); return; case 2: #line 20 "..\..\MenuDocumentPage.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnPrint); #line default #line hidden return; case 3: #line 21 "..\..\MenuDocumentPage.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnCreateXPS); #line default #line hidden return; case 4: #line 22 "..\..\MenuDocumentPage.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnClose); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\ReportWindow.xaml" ((AIFaceDrawing.ReportWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.docViewer = ((System.Windows.Controls.DocumentViewer)(target)); return; case 3: #line 17 "..\..\ReportWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Submit_Click); #line default #line hidden return; case 4: #line 18 "..\..\ReportWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Contact_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.dvDocumentViewer = ((System.Windows.Controls.DocumentViewer)(target)); return; case 2: #line 32 "..\..\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.DocumentViewer_PrintDocument); #line default #line hidden return; case 3: this.spProgressMask = ((System.Windows.Controls.Grid)(target)); return; case 4: this.pbPrintProgress = ((System.Windows.Controls.ProgressBar)(target)); return; case 5: #line 52 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnCancelPrint_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.documentViewer1 = ((System.Windows.Controls.DocumentViewer)(target)); return; case 2: this.SelectedFileTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.BrowseButton = ((System.Windows.Controls.Button)(target)); #line 20 "..\..\MainWindow.xaml" this.BrowseButton.Click += new System.Windows.RoutedEventHandler(this.BrowseButton_Click); #line default #line hidden return; } this._contentLoaded = true; }
/// <summary> /// Helper for the FitToMaxPagesAcross Command, called from ExecutedRoutedEventHandler. /// Verifies that the data passed into ExecutedRoutedEventHandler is valid for a column count /// and sets the MaxPagesAcross property appropriately. /// </summary> /// <param name="dv">the DocumentViewer that received the command</param> /// <param name="data">the data associated with this command</param> private static void DoFitToMaxPagesAcross(DocumentViewer dv, object data) { // Check that args is valid if (data != null) { int columnValue = 0; bool isValidArg = true; // If data is an int, then cast if (data is int) { columnValue = (int)data; } // If args.Data is a string, then parse else if (data is string) { try { columnValue = System.Convert.ToInt32((string)data, CultureInfo.CurrentCulture); } // Catch only the expected parse exceptions catch (ArgumentNullException) { isValidArg = false; } catch (FormatException) { isValidArg = false; } catch (OverflowException) { isValidArg = false; } } // Argument wasn't a valid int, throw an exception. if (!isValidArg) { throw new ArgumentException(SR.Get(SRID.DocumentViewerArgumentMustBeInteger), "data"); } dv.OnFitToMaxPagesAcrossCommand(columnValue); } else { throw new ArgumentNullException("data"); } }
/// <summary> /// Helper for the Zoom Command, called from ExecutedRoutedEventHandler. /// Verifies that the data passed into ExecutedRoutedEventHandler is valid for a zoom factor /// and sets the Zoom property appropriately. /// </summary> /// <param name="dv">The DocumentViewer that recieved the command</param> /// <param name="data">the data associated with this command</param> private static void DoZoom(DocumentViewer dv, object data) { // Check that args is valid if (data != null) { // If a ZoomConverter doesn't exist, create one. if (dv._zoomPercentageConverter == null) { dv._zoomPercentageConverter = new ZoomPercentageConverter(); } // Use ZoomConverter to convert argument to zoom value. // We use InvariantCulture because the Command arguments are typically // defined in XAML or code, which is culture invariant. object zoomValue = dv._zoomPercentageConverter.ConvertBack(data, typeof(double), null, CultureInfo.InvariantCulture); // Argument wasn't a valid percent, throw an exception. if (zoomValue == DependencyProperty.UnsetValue) { throw new ArgumentException(SR.Get(SRID.DocumentViewerArgumentMustBePercentage), "data"); } dv.Zoom = (double)zoomValue; } else { throw new ArgumentNullException("data"); } }
public void print_measures( ) { DocumentViewer documentViewer1 = new DocumentViewer(); //documentViewer1.Width = 800; ///documentViewer1.Height = 800; FixedDocument fixedDoc = new FixedDocument(); PageContent pgc = new PageContent(); FixedPage fxp = new FixedPage(); StackPanel panel = new StackPanel(); panel.Orientation = Orientation.Vertical; panel.HorizontalAlignment = System.Windows.HorizontalAlignment.Center; panel.Orientation = Orientation.Vertical; Thickness margin = panel.Margin; margin.Bottom = 0; margin.Left = 50; margin.Top = 50; margin.Right = 25; panel.Margin = margin; BitmapImage bmp_ = new BitmapImage(); Label test_lb = new Label(); test_lb.Content = "\n\nРезультаты измерений"; margin = test_lb.Margin; margin.Bottom = 50; margin.Left = 50; margin.Top = 50; margin.Right = 0; test_lb.BorderThickness = margin; panel.Children.Add(test_lb); ImageSource imageSource = new BitmapImage(new Uri(Directory.GetCurrentDirectory() + "\\file.jpg")); Image img = new Image(); img.Source = imageSource; panel.Children.Add(img); fxp.Children.Add(panel); ((System.Windows.Markup.IAddChild)pgc).AddChild(fxp); fixedDoc.Pages.Add(pgc); documentViewer1.Document = fixedDoc; Window ShowWindow = new Window(); ShowWindow.Width = 850; ShowWindow.Height = 850; ShowWindow.Content = documentViewer1; ShowWindow.Show(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Window = ((GUI.MarkingTool)(target)); #line 8 "..\..\..\SubA\MarkingTool.xaml" this.Window.Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden return; case 2: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 3: this.docView = ((System.Windows.Controls.DocumentViewer)(target)); return; case 4: this.inkMarker = ((System.Windows.Controls.InkCanvas)(target)); #line 12 "..\..\..\SubA\MarkingTool.xaml" this.inkMarker.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.inkMarker_MouseLeftButtonUp); #line default #line hidden return; } this._contentLoaded = true; }
private static ResearchOutput getROFromDB(int ID, DocumentViewer doc) { ResearchOutput cur = null; String SQL = String.Format("SELECT * FROM ResearchOutput WHERE OutputID = '{0}'", ID); ArrayList AL1 = RISReader.GetFirstRow(SQL); ArrayList AL2; switch (int.Parse(AL1[13].ToString())) { case 0: SQL = String.Format("SELECT * FROM JournalArticle WHERE OutputID = '{0}'", ID); AL2 = RISReader.GetFirstRow(SQL); cur = new JournalArticle(AL1, AL2, doc); break; case 1: SQL = String.Format("SELECT * FROM ConferencePaper WHERE OutputID = '{0}'", ID); AL2 = RISReader.GetFirstRow(SQL); cur = new ConferencePaper(AL1, AL2, doc); break; case 2: SQL = String.Format("SELECT * FROM Book WHERE OutputID = '{0}'", ID); AL2 = RISReader.GetFirstRow(SQL); cur = new Book(AL1, AL2, doc); break; default: break; } return cur; }
//Imported Documents public JournalArticle(String Title, DocumentViewer doc, XpsDocument xps, RegisteredUser author, String contentPath) :base(Title, doc, xps, author, contentPath) { }
public static List<ResearchOutput> getMyPublishedRO(DocumentViewer doc, RegisteredUser user) { List<ResearchOutput> list = new List<ResearchOutput>(); try { String SQL = String.Format("SELECT * FROM ResearchOutput WHERE AuthorID = '{0}'", user.SysID); DSL.Matrix matrix = RISReader.ReadTable(SQL); ArrayList AL2; ArrayList AL1; ResearchOutput cur; for (int x = 0; x < matrix.NumberOfRows; x++) { cur = null; AL1 = matrix.GetNextRow(); int ID = int.Parse(AL1[0].ToString()); switch (int.Parse(AL1[13].ToString())) { case 0: SQL = String.Format("SELECT * FROM JournalArticle WHERE OutputID = '{0}'", ID); AL2 = RISReader.GetFirstRow(SQL); cur = new JournalArticle(AL1, AL2, doc); break; case 1: SQL = String.Format("SELECT * FROM ConferencePaper WHERE OutputID = '{0}'", ID); AL2 = RISReader.GetFirstRow(SQL); cur = new ConferencePaper(AL1, AL2, doc); break; case 2: SQL = String.Format("SELECT * FROM Book WHERE OutputID = '{0}'", ID); AL2 = RISReader.GetFirstRow(SQL); cur = new Book(AL1, AL2, doc); break; default: break; } if (cur != null) cur.pendingPublication = false; list.Add(cur); } } catch (ConnException e) { MessageBox.Show("System databases are offline. Contact a systems admin for support", "Get published research output failed"); } catch (CmdException e) { MessageBox.Show("SQL Command Error.", "Get published research output failed"); } catch (ReadException e) { MessageBox.Show("Output does not exists", "Get published research output failed"); } catch (Exception e) { MessageBox.Show("Error: " + e.Message.ToString(), "Get published research output failed"); } return list; }
//private DocumentViewer GetNextDv(DocumentViewer dv, int k) //{ // if ((k > 0 && (int)dv.Tag < dvArrs.Count) || (k < 0 && (int)dv.Tag > 1)) // { // return (DocumentViewer)dvArrs[(int)dv.Tag + k-1]; // } // return null; //} private void AnLeft(int j) { if (dvArrs.Count > 0) { if (pDV == null) { pDV = GetCurDv(); } int iIndex = (int)pDV.Tag; DocumentViewer dvNext = null; if (pDV.Margin.Top < cLeft.Margin.Top - 5) { if (iIndex >= dvArrs.Count - 1) { return; } dvNext = (DocumentViewer)dvArrs[iIndex + 1]; } else { dvNext = pDV; pDV = (DocumentViewer)dvArrs[iIndex - 1]; } System.Windows.Media.Animation.Storyboard sb = new System.Windows.Media.Animation.Storyboard(); System.Windows.Media.Animation.ThicknessAnimation da2 = new System.Windows.Media.Animation.ThicknessAnimation(thCenter, cLeft.Margin, new Duration(TimeSpan.FromSeconds(2))); System.Windows.Media.Animation.ThicknessAnimation da6 = new System.Windows.Media.Animation.ThicknessAnimation(cRight.Margin, thCenter, new Duration(TimeSpan.FromSeconds(2))); System.Windows.Media.Animation.Storyboard.SetTarget(da2, pDV); System.Windows.Media.Animation.Storyboard.SetTargetProperty(da2, new PropertyPath(MarginProperty)); sb.Children.Add(da2); System.Windows.Media.Animation.Storyboard.SetTarget(da6, dvNext); System.Windows.Media.Animation.Storyboard.SetTargetProperty(da6, new PropertyPath(MarginProperty)); sb.Children.Add(da6); if (j > 0) { sb.SpeedRatio = 4.0; }else sb.SpeedRatio = 2.0; if (!Resources.Contains("ShowImagesLeftAn")) Resources.Add("ShowImagesLeftAn", sb); sb.Completed+=new EventHandler(sbLeft_Completed); sb.Begin(); Grid.SetZIndex(pDV, zindex++); Grid.SetZIndex(dvNext, zindex++); System.Windows.Media.Effects.DropShadowEffect dse1 = new System.Windows.Media.Effects.DropShadowEffect(); System.Windows.Media.Effects.DropShadowEffect dse2 = new System.Windows.Media.Effects.DropShadowEffect(); dse1.BlurRadius = 18; dse1.Color = Colors.Wheat; pDV.Effect = dse1; dse2.BlurRadius = 24; dse2.Color = Colors.Violet; dvNext.Effect = dse2; pDV = dvNext; } }
private void AnRight(int j) { if (dvArrs.Count > 0) { if (pDV == null) { pDV = GetCurDv(); } int iIndex = (int)pDV.Tag; DocumentViewer dvPre = null; if (pDV.Margin.Top < cRight.Margin.Top - 5) { if (iIndex < 1) return; dvPre = (DocumentViewer)dvArrs[iIndex - 1]; } else { dvPre = pDV; pDV = (DocumentViewer)dvArrs[iIndex + 1]; } System.Windows.Media.Animation.ThicknessAnimation da2 = new System.Windows.Media.Animation.ThicknessAnimation(thCenter, cRight.Margin, new Duration(TimeSpan.FromSeconds(2))); //System.Windows.Media.Animation.DoubleAnimation da3 = new System.Windows.Media.Animation.DoubleAnimation(pDV.Margin.Top, cRight.Margin.Top, new Duration(TimeSpan.FromSeconds(2))); //System.Windows.Media.Animation.DoubleAnimation da4 = new System.Windows.Media.Animation.DoubleAnimation(pDV.Margin.Right, cRight.Margin.Right, new Duration(TimeSpan.FromSeconds(2))); //System.Windows.Media.Animation.DoubleAnimation da5 = new System.Windows.Media.Animation.DoubleAnimation(pDV.Margin.Bottom, cRight.Margin.Bottom, new Duration(TimeSpan.FromSeconds(2))); System.Windows.Media.Animation.ThicknessAnimation da6 = new System.Windows.Media.Animation.ThicknessAnimation(dvPre.Margin, thCenter, new Duration(TimeSpan.FromSeconds(2))); //System.Windows.Media.Animation.DoubleAnimation da7 = new System.Windows.Media.Animation.DoubleAnimation(dvPre.Margin.Top,pDV.Margin.Top, new Duration(TimeSpan.FromSeconds(2))); //System.Windows.Media.Animation.DoubleAnimation da8 = new System.Windows.Media.Animation.DoubleAnimation(dvPre.Margin.Right,pDV.Margin.Right,new Duration(TimeSpan.FromSeconds(2))); //System.Windows.Media.Animation.DoubleAnimation da9 = new System.Windows.Media.Animation.DoubleAnimation(dvPre.Margin.Bottom, pDV.Margin.Bottom, new Duration(TimeSpan.FromSeconds(2))); System.Windows.Media.Animation.Storyboard sb = new System.Windows.Media.Animation.Storyboard(); System.Windows.Media.Animation.Storyboard.SetTarget(da2, pDV); System.Windows.Media.Animation.Storyboard.SetTargetProperty(da2, new PropertyPath(MarginProperty)); //System.Windows.Media.Animation.Storyboard.SetTarget(da3, pDV); //System.Windows.Media.Animation.Storyboard.SetTargetProperty(da3, new PropertyPath(MarginProperty)); //System.Windows.Media.Animation.Storyboard.SetTarget(da4, pDV); //System.Windows.Media.Animation.Storyboard.SetTargetProperty(da4, new PropertyPath(MarginProperty)); //System.Windows.Media.Animation.Storyboard.SetTarget(da5, pDV); //System.Windows.Media.Animation.Storyboard.SetTargetProperty(da5, new PropertyPath(MarginProperty)); System.Windows.Media.Animation.Storyboard.SetTarget(da6, dvPre); System.Windows.Media.Animation.Storyboard.SetTargetProperty(da6, new PropertyPath(MarginProperty)); //System.Windows.Media.Animation.Storyboard.SetTarget(da7, dvPre); //System.Windows.Media.Animation.Storyboard.SetTargetProperty(da7, new PropertyPath(MarginProperty)); //System.Windows.Media.Animation.Storyboard.SetTarget(da8, dvPre); //System.Windows.Media.Animation.Storyboard.SetTargetProperty(da8, new PropertyPath(MarginProperty)); //System.Windows.Media.Animation.Storyboard.SetTarget(da9, dvPre); //System.Windows.Media.Animation.Storyboard.SetTargetProperty(da9, new PropertyPath(MarginProperty)); sb.Children.Add(da2); //sb.Children.Add(da3); //sb.Children.Add(da4); //sb.Children.Add(da5); sb.Children.Add(da6); //sb.Children.Add(da7); //sb.Children.Add(da8); //sb.Children.Add(da9); if (j > 0) { sb.SpeedRatio = 4.0; } else sb.SpeedRatio = 2.0; if (!Resources.Contains("ShowImagesRightAn")) Resources.Add("ShowImagesRightAn", sb); sb.Completed += new EventHandler(sbRight_Completed); sb.Begin(); Grid.SetZIndex(pDV, zindex++); Grid.SetZIndex(dvPre, zindex++); System.Windows.Media.Effects.DropShadowEffect dse1 = new System.Windows.Media.Effects.DropShadowEffect(); System.Windows.Media.Effects.DropShadowEffect dse2 = new System.Windows.Media.Effects.DropShadowEffect(); dse1.BlurRadius=18; dse1.Color=Colors.Wheat; pDV.Effect = dse1; dse2.BlurRadius=24; dse2.Color=Colors.Violet; dvPre.Effect = dse2; pDV = dvPre; } }
/// <summary> /// Constructor /// </summary> /// <param name="owner">Owner of the AutomationPeer.</param> public DocumentViewerAutomationPeer(DocumentViewer owner) : base(owner) { }
void sbRight_Completed(object sender, EventArgs e) { //throw new NotImplementedException(); int CurPage = (int)pDV.Tag + 1; if (iTag == CurPage) { pDV = null; return; } //System.Threading.Thread.Sleep(300); AnRight(CurPage-iTag); }
void sbLeft_Completed(object sender,EventArgs e) { int CurPage = (int)pDV.Tag+1; if (iTag == CurPage) { //if (myDragOverEvent != null) // myDragOverEvent(); pDV = null; return; } //System.Threading.Thread.Sleep(500); AnLeft(iTag-CurPage); }
private void initXps(int pages, Grid g) { cLeft.Background = Brushes.Black; cLeft.Margin = new Thickness(20, 80, 600, 80); cRight.Margin = new Thickness(600, 80, 20, 80); cRight.Background = Brushes.Black; cLeft.MouseLeftButtonUp += new MouseButtonEventHandler(btLeft_MouseLeftButtonUp); cRight.MouseLeftButtonUp += new MouseButtonEventHandler(btRight_MouseLeftButtonUp); g.Children.Add(cLeft); g.Children.Add(cRight); for (int i = pages; i > 0; i--) { System.Windows.Media.Effects.DropShadowEffect dse = new System.Windows.Media.Effects.DropShadowEffect(); DocumentViewer dv = new DocumentViewer(); dv.MouseMove += new MouseEventHandler(dv_MouseMove); //dv.MouseLeftButtonDown += new MouseButtonEventHandler(dv_MouseLeftButtonDown); dv.MouseLeftButtonUp += new MouseButtonEventHandler(dv_MouseLeftButtonUp); if (i == 1) { dv.Margin = thCenter; dse.BlurRadius = 24; dse.Color = Colors.Violet; } else { dv.Margin = cRight.Margin; dse.Color = Colors.Wheat; dse.BlurRadius = 16; } dv.Tag = i - 1; dv.Effect = dse; g.Children.Add(dv); if (dvArrs.Count == 0) dvArrs.Add(dv); else dvArrs.Insert(0, dv); } //g.MouseLeftButtonUp += new MouseButtonEventHandler(g_MouseLeftButtonUp); }
void dv_MouseMove(object sender, MouseEventArgs e) { //throw new NotImplementedException(); if (e.LeftButton == MouseButtonState.Pressed && pDV == null) { pDV = (DocumentViewer)sender; //pOrigin=e.GetPosition((Grid)pDV.Parent); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.mainGrid = ((System.Windows.Controls.Grid)(target)); return; case 2: this.imgBackground = ((System.Windows.Controls.Image)(target)); return; case 3: this.txtMachineCode = ((System.Windows.Controls.TextBlock)(target)); return; case 4: this.tbTime = ((System.Windows.Controls.TextBlock)(target)); return; case 5: this.imgDoPrint = ((System.Windows.Controls.Image)(target)); return; case 6: this.imgBtnChoice4 = ((System.Windows.Controls.Image)(target)); return; case 7: this.btnBack = ((System.Windows.Controls.Button)(target)); return; case 8: this.btnHome = ((System.Windows.Controls.Button)(target)); return; case 9: this.imgViewFrame = ((System.Windows.Controls.Image)(target)); return; case 10: this.imgViewPrting = ((System.Windows.Controls.Image)(target)); return; case 11: this.imgViewPrintFinish = ((System.Windows.Controls.Image)(target)); return; case 12: this.imgViewFrame_back = ((System.Windows.Controls.Image)(target)); return; case 13: this.dvcontent = ((System.Windows.Controls.DocumentViewer)(target)); return; case 14: this.imgViewFrame_WithPreView = ((System.Windows.Controls.Image)(target)); return; case 15: this.imgPayScanTitle = ((System.Windows.Controls.Image)(target)); return; case 16: this.imgPayWeichat = ((System.Windows.Controls.Image)(target)); return; case 17: this.imgPayAli = ((System.Windows.Controls.Image)(target)); return; case 18: this.imgPayCard = ((System.Windows.Controls.Image)(target)); return; case 19: this.imgQrFram = ((System.Windows.Controls.Image)(target)); return; case 20: this.imgQr = ((System.Windows.Controls.Image)(target)); return; case 21: this.imgProcess = ((System.Windows.Controls.Image)(target)); return; case 22: this.imgProcess1 = ((System.Windows.Controls.Image)(target)); return; case 23: this.imgGoto1 = ((System.Windows.Controls.Image)(target)); return; case 24: this.imgProcess2 = ((System.Windows.Controls.Image)(target)); return; case 25: this.imgGoto2 = ((System.Windows.Controls.Image)(target)); return; case 26: this.imgProcess3 = ((System.Windows.Controls.Image)(target)); return; case 27: this.imgGoto3 = ((System.Windows.Controls.Image)(target)); return; case 28: this.imgProcess4 = ((System.Windows.Controls.Image)(target)); return; case 29: this.imgGoto4 = ((System.Windows.Controls.Image)(target)); return; case 30: this.imgProcess5 = ((System.Windows.Controls.Image)(target)); return; case 31: this.imgGoto5 = ((System.Windows.Controls.Image)(target)); return; case 32: this.imgProcess6 = ((System.Windows.Controls.Image)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.documentviewWord = ((System.Windows.Controls.DocumentViewer)(target)); return; case 2: this.bt_close = ((System.Windows.Controls.Image)(target)); return; case 3: this.bt1 = ((System.Windows.Controls.Image)(target)); return; case 4: this.bt2 = ((System.Windows.Controls.Image)(target)); return; case 5: this.img_cloud = ((System.Windows.Controls.Image)(target)); return; } this._contentLoaded = true; }
public void Show(string windowTitle, DocumentViewer documentViewer) { _window.Content = documentViewer; _window.Title = $"Preview: {windowTitle}"; _window.Show(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 4 "..\..\..\..\..\Modules\Law\Citation\CitationEntry.xaml" ((Invert911.Citation.CitationEntry)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.MenuLabel = ((System.Windows.Controls.Label)(target)); return; case 3: this.SaveButton = ((System.Windows.Controls.Button)(target)); return; case 4: this.PrintButton = ((System.Windows.Controls.Button)(target)); return; case 5: this.CopyButton = ((System.Windows.Controls.Button)(target)); return; case 6: this.NextButton = ((System.Windows.Controls.Button)(target)); return; case 7: this.CancelButton = ((System.Windows.Controls.Button)(target)); return; case 8: this.MainTabControl = ((System.Windows.Controls.TabControl)(target)); return; case 9: this.tabItem1 = ((System.Windows.Controls.TabItem)(target)); return; case 10: this.PersonDockPanel = ((System.Windows.Controls.DockPanel)(target)); return; case 11: this.OffenseGeneralGroupBox = ((System.Windows.Controls.GroupBox)(target)); return; case 12: this.GeneralGroupBox = ((System.Windows.Controls.GroupBox)(target)); return; case 13: this.documentViewer1 = ((System.Windows.Controls.DocumentViewer)(target)); return; } this._contentLoaded = true; }
public static ResearchOutput getPublishedRO(int ID, DocumentViewer doc) { ResearchOutput cur = null; try { cur = getROFromDB(ID, doc); cur.pendingPublication = false; } catch (ConnException e) { MessageBox.Show("System databases are offline. Contact a systems admin for support", "Get published research output failed"); } catch (CmdException e) { MessageBox.Show("SQL Command Error.", "Get published research output failed"); } catch (ReadException e) { MessageBox.Show("Output does not exists", "Get published research output failed"); } catch (Exception e) { MessageBox.Show("Error: " + e.Message.ToString(), "Get published research output failed"); } return cur; }
public JournalArticle(ArrayList RO, ArrayList JA , DocumentViewer doc) :base(RO, doc) { outputID = int.Parse(JA[0].ToString()); journalISSN = JA[1].ToString(); SelectJournal(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.documentViewer = ((System.Windows.Controls.DocumentViewer)(target)); return; case 2: this.btnCancel = ((System.Windows.Controls.Button)(target)); #line 193 "..\..\..\ReportPrintControl.xaml" this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click); #line default #line hidden return; case 3: this.btnPrint = ((System.Windows.Controls.Button)(target)); return; case 4: this.gvTest = ((System.Windows.Controls.Grid)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 4 "..\..\MainWindow.xaml" ((CS6456_myNote.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown); #line default #line hidden return; case 2: this.my_NoteArea = ((System.Windows.Controls.Canvas)(target)); #line 8 "..\..\MainWindow.xaml" this.my_NoteArea.Drop += new System.Windows.DragEventHandler(this.my_NoteArea_Drop); #line default #line hidden return; case 3: this.com_Indicator = ((System.Windows.Shapes.Rectangle)(target)); return; case 4: this.myTextBox_0 = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.myTextBox_1 = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.myTextBox_2 = ((System.Windows.Controls.TextBox)(target)); return; case 7: this.myTextBox_3 = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.my_pdfViewer = ((System.Windows.Controls.Canvas)(target)); return; case 9: this.Opbtn = ((System.Windows.Controls.Button)(target)); #line 22 "..\..\MainWindow.xaml" this.Opbtn.Click += new System.Windows.RoutedEventHandler(this.Opbtn_Click); #line default #line hidden return; case 10: this.fileViewer = ((System.Windows.Controls.DocumentViewer)(target)); #line 25 "..\..\MainWindow.xaml" this.fileViewer.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.fileViewer_MouseDown); #line default #line hidden return; case 11: this.drag_file = ((System.Windows.Controls.Label)(target)); #line 26 "..\..\MainWindow.xaml" this.drag_file.DragEnter += new System.Windows.DragEventHandler(this.drag_file_DragEnter); #line default #line hidden #line 26 "..\..\MainWindow.xaml" this.drag_file.Drop += new System.Windows.DragEventHandler(this.drag_file_Drop); #line default #line hidden return; case 12: this.my_thumbnail = ((System.Windows.Controls.Canvas)(target)); return; case 13: this.my_Note_Menu = ((System.Windows.Controls.Canvas)(target)); #line 30 "..\..\MainWindow.xaml" this.my_Note_Menu.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.my_Note_Menu_MouseDown); #line default #line hidden return; case 14: #line 31 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NewButton_Click); #line default #line hidden return; case 15: this.Ctrl_Sig = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }