public AgentType GetCustomizedAgent() { if (this.GetMetaType() == MetaTypes.Agent) { if (this.baseComboBox.SelectedIndex > -1) { Debug.Check(_customizedAgent != null); AgentType baseAgent = Plugin.AgentTypes[this.baseComboBox.SelectedIndex]; _customizedAgent.Reset(this.nameTextBox.Text, baseAgent, this.dispTextBox.Text, this.descTextBox.Text); } } return(_customizedAgent); }
public AgentType GetCustomizedAgent() { if (this.GetMetaType() == MetaTypes.Agent) { if (this.baseComboBox.SelectedIndex > -1) { Debug.Check(_customizedAgent != null); if (_customizedAgent != null) { AgentType baseAgent = Plugin.AgentTypes[this.baseComboBox.SelectedIndex]; string exportLocation = Workspace.Current.MakeRelativePath(this.locationTextBox.Text); exportLocation = exportLocation.Replace("\\\\", "/"); exportLocation = exportLocation.Replace("\\", "/"); _customizedAgent.Reset(!this.exportCodeCheckBox.Checked, GetFullname(), _customizedAgent.OldName, baseAgent, exportLocation, this.dispTextBox.Text, this.descTextBox.Text); } } } return(_customizedAgent); }
public AgentType GetCustomizedAgent() { if (this.GetMetaType() == MetaTypes.Agent) { if (this.baseComboBox.SelectedIndex > -1) { Debug.Check(_customizedAgent != null); AgentType baseAgent = Plugin.AgentTypes[this.baseComboBox.SelectedIndex]; string agentName = this.nameTextBox.Text; if (!string.IsNullOrEmpty(this.namespaceTextBox.Text)) { agentName = this.namespaceTextBox.Text + "::" + agentName; } _customizedAgent.Reset(this.extendCheckBox.Checked, agentName, baseAgent, this.dispTextBox.Text, this.descTextBox.Text); } } return(_customizedAgent); }