public static void OpenProcess(Process process)
{
//Grab code is commented out until XNA programs can fix their bug where they won't resize correctly.
if (process == null || process.HasExited) return;
lock (ProcessLock)
{
Processes.Add(process, new ProcessData
{
ParentWindowHandle = EditorData.PreferenceSettings.ChildExternalApps
? MainGlueWindow.Self.Handle
: (IntPtr)0,
StartTime = DateTime.Now
});
}
}
}