public void AddAgent(IAgentManagementViewModel agentVm) { var agent = agentVm.ToEnvironmentAgent(); UserSettings.AddAgent(agent); SaveSettingsFile(UserSettings); }