예제 #1
0
        private void CmdPreview_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            CUtil.EnableForm(false, this);
            String name = constructPDFForm();

            CUtil.EnableForm(true, this);

            WinPDFViewer wp = new WinPDFViewer(name, "ภ.พ.30");

            wp.ShowDialog();
            wp = null;
        }
예제 #2
0
        private void CmdPreview_Click(object sender, RoutedEventArgs e)
        {
            MVTaxDocument td = (MVTaxDocument)vw;

            Boolean result = validateData();

            if (!result)
            {
                return;
            }

            CWinLoadParam parm = new CWinLoadParam();

            parm.ActualView = td;
            WinTaxDocRendererProgress trp = new WinTaxDocRendererProgress(parm);

            trp.ShowDialog();

            WinPDFViewer wp = new WinPDFViewer(trp.PDFName, this.Title);

            wp.ShowDialog();
            wp = null;
        }