Beispiel #1
0
        private void barBtnXuatBaoCao_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ReportTSCD.frmReport _frmReport = new ReportTSCD.frmReport();
            _frmReport.ShowDialog();

            /*TSCD_GUI.ReportTSCD.XtraReportTSCD_Grid _XtraReportTSCD_Grid = new ReportTSCD.XtraReportTSCD_Grid(ucGridControlTaiSan1.gridControlTaiSan);
             * ReportPrintTool _ReportPrintTool = new ReportPrintTool(_XtraReportTSCD_Grid);
             * _ReportPrintTool.ShowPreviewDialog();*/

            //ReportTSCD.XtraReportTSCD _XtraReportTSCD = new ReportTSCD.XtraReportTSCD(ucGridControlTaiSan1.gridControlTaiSan);
        }
Beispiel #2
0
        private void barBtnXuatBaoCao_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            barBtnXuatBaoCao.Enabled = false;

            System.Threading.Thread _Thread = new System.Threading.Thread(new System.Threading.ThreadStart(() =>
            {
                DevExpress.UserSkins.BonusSkins.Register();
                Application.EnableVisualStyles();
                UserLookAndFeel.Default.SetSkinStyle(TSCD.Global.local_setting.ApplicationSkinName);
                DevExpress.Skins.SkinManager.EnableFormSkins();

                ReportTSCD.frmReport _frmReport = new ReportTSCD.frmReport();
                _frmReport._SendMessage         = new ReportTSCD.frmReport.SendMessage(EnableXuatBaoCao);
                try
                {
                    Application.Run(_frmReport);
                }
                catch { }
            }));
            _Thread.SetApartmentState(System.Threading.ApartmentState.STA);
            _Thread.Start();
        }
        private void barBtnXuatBaoCao_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ReportTSCD.frmReport _frmReport = new ReportTSCD.frmReport();
            _frmReport.ShowDialog();
            /*TSCD_GUI.ReportTSCD.XtraReportTSCD_Grid _XtraReportTSCD_Grid = new ReportTSCD.XtraReportTSCD_Grid(ucGridControlTaiSan1.gridControlTaiSan);
            ReportPrintTool _ReportPrintTool = new ReportPrintTool(_XtraReportTSCD_Grid);
            _ReportPrintTool.ShowPreviewDialog();*/

            //ReportTSCD.XtraReportTSCD _XtraReportTSCD = new ReportTSCD.XtraReportTSCD(ucGridControlTaiSan1.gridControlTaiSan);
        }
Beispiel #4
0
        private void barBtnXuatBaoCao_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            barBtnXuatBaoCao.Enabled = false;

            System.Threading.Thread _Thread = new System.Threading.Thread(new System.Threading.ThreadStart(() =>
            {
                DevExpress.UserSkins.BonusSkins.Register();
                Application.EnableVisualStyles();
                UserLookAndFeel.Default.SetSkinStyle(TSCD.Global.local_setting.ApplicationSkinName);
                DevExpress.Skins.SkinManager.EnableFormSkins();

                ReportTSCD.frmReport _frmReport = new ReportTSCD.frmReport();
                _frmReport._SendMessage = new ReportTSCD.frmReport.SendMessage(EnableXuatBaoCao);
                try
                {
                    Application.Run(_frmReport);
                }
                catch { }
            }));
            _Thread.SetApartmentState(System.Threading.ApartmentState.STA);
            _Thread.Start();
        }