static public VonSensor.WindowAgent AlsWindowAgent(this MemoryStruct.WindowAgent WindowAgent) { if (null == WindowAgent) { return(null); } return(new VonSensor.WindowAgent(WindowAgent.AlsWindowNurBase(), WindowAgent.AgentName(), null, null)); }
static public string AgentName(this MemoryStruct.WindowAgent WindowAgent) { var HeaderCaptionTextMatch = Regex.Match(WindowAgent?.Caption ?? "", WindowAgentHeaderCaptionTextRegexPatternAgentConversation(), RegexOptions.IgnoreCase); if (HeaderCaptionTextMatch.Success) { return(HeaderCaptionTextMatch.Groups[2].Value.Trim()); } return(null); }