Ejemplo n.º 1
0
        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);        


        }