public CuttingTool.Property AddLife(CuttingTool.LifeType type, CuttingTool.Direction direction, string value = null, string initial = null, string limit = null, string warning = null) { CuttingTool.Property item = new CuttingTool.Property("ItemLife", (string[])null, null) { Value = value }; item.AddAttribute(new CuttingTool.Property.Attribute("type", type.ToString())); item.AddAttribute(new CuttingTool.Property.Attribute("countDirection", direction.ToString())); if (initial != null) { item.AddAttribute(new CuttingTool.Property.Attribute("initial", initial)); } if (limit != null) { item.AddAttribute(new CuttingTool.Property.Attribute("limit", limit)); } if (warning != null) { item.AddAttribute(new CuttingTool.Property.Attribute("warning", warning)); } this.mProperties.Add(item); return(item); }
public CuttingTool.Property AddProperty(string name, string[] arguments, string value = null) { CuttingTool.Property item = new CuttingTool.Property(name, arguments, value); this.mProperties.Add(item); return(item); }
public CuttingTool.Property AddProperty(string name, string value) { CuttingTool.Property item = new CuttingTool.Property(name, value); this.mProperties.Add(item); return(item); }