public override void OnClose(SegmentEntity targetEntity) { ItemSearch = false; QuantumIoPortItemSearch.TerminateSearchWindow(); }