示例#1
0
        private void newProjectItem_Click(object sender, EventArgs e)
        {
            NewProjectDialog newProject = new NewProjectDialog();
            DialogResult     result     = newProject.ShowDialog(this);

            // Project successfully created?
            if (result == DialogResult.OK)
            {
                // Open new project
                var startInfo = new System.Diagnostics.ProcessStartInfo(newProject.ResultEditorBinary);
                startInfo.WorkingDirectory = Path.GetDirectoryName(startInfo.FileName);
                startInfo.UseShellExecute  = false;
                System.Diagnostics.Process.Start(startInfo);

                // Don't need this DualityEditor anymore - close it!
                this.CloseNonUser();
            }
        }
示例#2
0
        private void newProjectItem_Click(object sender, EventArgs e)
        {
            NewProjectDialog newProject = new NewProjectDialog();
            DialogResult result = newProject.ShowDialog(this);

            // Project successfully created?
            if (result == DialogResult.OK)
            {
                // Open new project
                var startInfo = new System.Diagnostics.ProcessStartInfo(newProject.ResultEditorBinary);
                startInfo.WorkingDirectory = Path.GetDirectoryName(startInfo.FileName);
                startInfo.UseShellExecute = false;
                System.Diagnostics.Process.Start(startInfo);

                // Don't need this DualityEditor anymore - close it!
                this.CloseNonUser();
            }
        }