Exemple #1
0
        private void btnConfirm_Click(object sender, RoutedEventArgs e)
        {
            if (printWhat == EPrintSchedule.CutprepMaster)
            {
                var cutprepMasterExportViewReportList = contentPrint[0] as List <CutprepMasterExportViewModel>;
                var lineName = contentPrint[1] as String;

                CutprepMasterReportWindow window = new CutprepMasterReportWindow(cutprepMasterExportViewReportList, lineName, columnNeedPrintList);
                window.Show();
                //this.Close();
            }
        }
Exemple #2
0
        private void btnReport_Click(object sender, RoutedEventArgs e)
        {
            List <CutprepMasterExportViewModel> cutprepMasterExportViewReportList = dgMaster.Items.Cast <CutprepMasterExportViewModel>().ToList();

            if (cutprepMasterExportViewReportList.Count() <= 0)
            {
                return;
            }
            CutprepMasterReportWindow window = new CutprepMasterReportWindow(cutprepMasterExportViewReportList, lblLine.ToolTip.ToString());

            window.Show();
        }