private bool IsAgentKeyValid() { Match match = AgentKeyRegex.Match(_agentKey.Text); if (!match.Success) { return false; } return true; }