Example #1
0
        private void actionProfileApp_Click(object sender, EventArgs e)
        {
            DualityEditorApp.SaveAllProjectData();
            this.VerifyStartScene();

            System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
            startInfo.FileName         = Path.GetFileName(DualityEditorApp.LauncherAppPath);
            startInfo.Arguments        = DualityApp.CmdArgEditor + " " + DualityApp.CmdArgProfiling;
            startInfo.WorkingDirectory = Path.GetDirectoryName(DualityEditorApp.LauncherAppPath);
            System.Diagnostics.Process appProc = System.Diagnostics.Process.Start(startInfo);

            AppRunningDialog runningDialog = new AppRunningDialog(appProc);

            runningDialog.ShowDialog(this);
        }
Example #2
0
        private void actionDebugApp_Click(object sender, EventArgs e)
        {
            DualityEditorApp.SaveAllProjectData();
            this.VerifyStartScene();

            System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
            startInfo.FileName         = Path.GetFullPath(DualityEditorApp.EditorAppData.Instance.LauncherPath);
            startInfo.Arguments        = LauncherArgs.CmdArgEditor + " " + LauncherArgs.CmdArgDebug;
            startInfo.WorkingDirectory = Environment.CurrentDirectory;
            System.Diagnostics.Process appProc = System.Diagnostics.Process.Start(startInfo);

            AppRunningDialog runningDialog = new AppRunningDialog(appProc);

            runningDialog.ShowDialog(this);
        }
Example #3
0
        private void actionRunApp_Click(object sender, EventArgs e)
        {
            DualityEditorApp.SaveAllProjectData();
            this.VerifyStartScene();

            System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
            startInfo.FileName = Path.GetFullPath(DualityEditorApp.LauncherAppPath);
            startInfo.Arguments = DualityApp.CmdArgEditor;
            startInfo.WorkingDirectory = Environment.CurrentDirectory;
            System.Diagnostics.Process appProc = System.Diagnostics.Process.Start(startInfo);

            AppRunningDialog runningDialog = new AppRunningDialog(appProc);
            runningDialog.ShowDialog(this);
        }