コード例 #1
0
ファイル: Program.cs プロジェクト: webworkeryang/Gios.PSM
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ProjectForm pf = new ProjectForm();

            pf.Project = PdfProject.BlankProject;
            if (args.Length > 0)
            {
                try
                {
                    pf.Project = PdfProject.Load(args[0]);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }

            Application.Run(pf);
        }
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ProjectForm pf = new ProjectForm();
            pf.Project = PdfProject.BlankProject;
            if (args.Length > 0)
            {
                try
                {
                    pf.Project = PdfProject.Load(args[0]);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }

            Application.Run(pf);        


        }