public ToolSwitch(ToolSwitchType toolType) { this.name = string.Empty; this.falseSuffix = string.Empty; this.trueSuffix = string.Empty; this.separator = string.Empty; this.argumentParameter = string.Empty; this.fallback = string.Empty; this.parents = new LinkedList <string>(); this.overrides = new LinkedList <KeyValuePair <string, string> >(); this.booleanValue = true; this.value = string.Empty; this.switchValue = string.Empty; this.reverseSwitchValue = string.Empty; this.description = string.Empty; this.displayName = string.Empty; this.type = toolType; }
private void SetStringArray(string name, ToolSwitchType type, string displayName, string description, string switchValue, string[] value) { base.ActiveToolSwitches.Remove(name); ToolSwitch toolSwitch = new ToolSwitch(type); toolSwitch.DisplayName = displayName; toolSwitch.Description = description; toolSwitch.ArgumentRelationList = new ArrayList(); toolSwitch.SwitchValue = switchValue; toolSwitch.Name = name; toolSwitch.StringList = value; base.ActiveToolSwitches.Add(name, toolSwitch); base.AddActiveSwitchToolValue(toolSwitch); }
public ToolSwitch(ToolSwitchType toolType) { this.type = toolType; }