static void Main() { try { openCon(); Application.Run(new CReportDll.comReport.newRep.frmReport()); return; XmlDocument xDoc=new XmlDocument(); xDoc.Load("startForm.xml"); if(xDoc.DocumentElement.SelectSingleNode("./startForm").Attributes.GetNamedItem("val").Value.Trim()=="report") { //***************����ϵͳ��ʾ CReportDll.comReport.newRep.frmReport frmRepO=new CReportDll.comReport.newRep.frmReport(); //frmRepO.m_sCon=BengZhan.CDBConnection.m_sCon; Application.Run(frmRepO); //Application.Run(new winRep.Form1()); //************************** } else { if(xDoc.DocumentElement.SelectSingleNode("./startForm").Attributes.GetNamedItem("val").Value.Trim()=="chart") { CReportDll.comReport.newRep.frmChart frmC=new CReportDll.comReport.newRep.frmChart(); frmC.ShowDialog();; // CReportDll.frmChart frmChartO=new CReportDll.frmChart(); // Application.Run(frmChartO); } else { CReportDll.comReport.newRep.frmSalReport frmSSO=new CReportDll.comReport.newRep.frmSalReport(); frmSSO.ShowDialog(); } } } catch(Exception ex) { MessageBox.Show(ex.ToString()); } }
static void Main() { try { openCon(); Application.Run(new CReportDll.comReport.newRep.frmReport()); return; XmlDocument xDoc = new XmlDocument(); xDoc.Load("startForm.xml"); if (xDoc.DocumentElement.SelectSingleNode("./startForm").Attributes.GetNamedItem("val").Value.Trim() == "report") { //***************顶峰系统显示 CReportDll.comReport.newRep.frmReport frmRepO = new CReportDll.comReport.newRep.frmReport(); //frmRepO.m_sCon=BengZhan.CDBConnection.m_sCon; Application.Run(frmRepO); //Application.Run(new winRep.Form1()); //************************** } else { if (xDoc.DocumentElement.SelectSingleNode("./startForm").Attributes.GetNamedItem("val").Value.Trim() == "chart") { CReportDll.comReport.newRep.frmChart frmC = new CReportDll.comReport.newRep.frmChart(); frmC.ShowDialog();; // CReportDll.frmChart frmChartO=new CReportDll.frmChart(); // Application.Run(frmChartO); } else { CReportDll.comReport.newRep.frmSalReport frmSSO = new CReportDll.comReport.newRep.frmSalReport(); frmSSO.ShowDialog(); } } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }