private void ShowProcessOutline(IntPtr handle) { try { if (processOutline == null) { processOutline = new ProcessOutline(handle); processOutline.Show(); } } catch (Exception ex) { LogException(ex); } }
private void ShowProcessOutline(Process proc) { try { WindowItem windowItem = WindowItem.Create(proc); if (processOutline == null) { processOutline = new ProcessOutline(windowItem); processOutline.Show(); } } catch (Exception ex) { LogException(ex); } }