コード例 #1
0
        static void Main()
        {
            string fileName = Application.StartupPath + @"\Itop.DLGH.exe.config";

            if (!System.IO.File.Exists(fileName))
            {
                Itop.Common.MsgBox.Show("配置文件不存在,系统无法启动");
                return;
            }

            try
            {
                RemotingConfiguration.Configure(fileName, false);
            }
            catch
            {
                MessageBox.Show("配置文件被破坏,请与软件服务商联系");
                return;
            }
            //f3eafde4-50c5-4112-925c-c569513230f0
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            frmViewMain f = new frmViewMain();

            //frmSvgView f = new frmSvgView();
            //f.Open("f3eafde4-50c5-4112-925c-c569513230f0");
            Application.Run(f);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: EdgarEDT/myitoppsp
        static void Main()
        {
            string fileName = Application.StartupPath + @"\Itop.DLGH.exe.config";
            if (!System.IO.File.Exists(fileName))
            {
                Itop.Common.MsgBox.Show("配置文件不存在,系统无法启动");
                return;
            }

            try
            {
                RemotingConfiguration.Configure(fileName, false);
            }
            catch
            {
                MessageBox.Show("配置文件被破坏,请与软件服务商联系");
                return;
            }
            //f3eafde4-50c5-4112-925c-c569513230f0
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            frmViewMain f = new frmViewMain();
            //frmSvgView f = new frmSvgView();
            //f.Open("f3eafde4-50c5-4112-925c-c569513230f0");
            Application.Run(f);
        }
コード例 #3
0
ファイル: frmViewMain.cs プロジェクト: EdgarEDT/myitoppsp
 public void A()
 {
     frmViewMain a = new frmViewMain();
     a.Show();
 }
コード例 #4
0
        public void A()
        {
            frmViewMain a = new frmViewMain();

            a.Show();
        }