public bool IsChildOf(TrackedProcess process) { return(ParentProcessId == process.ProcessId && Started > process.Started && (process.Ended == 0 || Started < process.Ended)); }
public bool IsParentOf(TrackedProcess process) { return(process.ParentProcessId == ProcessId && process.Started > Started && (Ended == 0 || Ended > process.Started)); }