Esempio n. 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.thisForm = ((SKPI_Cantier_Extracted_Data.OQC_Report_DWR)(target));

            #line 9 "..\..\OQC_Report_DWR.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 29 "..\..\OQC_Report_DWR.xaml"
                this.btnPrint.Click += new System.Windows.RoutedEventHandler(this.BtnPrint_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 2
0
        private void BtnPreview_Click(object sender, RoutedEventArgs e)
        {
            OQC_Report_DWR frm = new OQC_Report_DWR();

            frm._workDate = dateStart.SelectedDate.Value.ToString("yyyy-MM-dd");
            frm.Show();
        }