void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.thisForm = ((SKPI_Cantier_Extracted_Data.OQC_Report_InspectionNormal)(target)); #line 9 "..\..\..\..\OQCIS\Report_Forms\OQC_Report_InspectionNormal.xaml" this.thisForm.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.reportViewer = ((SAPBusinessObjects.WPF.Viewer.CrystalReportsViewer)(target)); return; case 3: this.btnPrint = ((System.Windows.Controls.Button)(target)); #line 34 "..\..\..\..\OQCIS\Report_Forms\OQC_Report_InspectionNormal.xaml" this.btnPrint.Click += new System.Windows.RoutedEventHandler(this.BtnPrint_Click); #line default #line hidden return; } this._contentLoaded = true; }
private void BtnPreview_Click(object sender, RoutedEventArgs e) { OQC_Report_InspectionNormal frm = new OQC_Report_InspectionNormal(); frm._workDate = dpWorkDate.SelectedDate.Value; frm.ShowDialog(); }