// Creates an EstimatorTag object public bool Create(string id, string description, tag_type type) { m_id = id; m_id.Trim(); m_description = description; m_description.Trim(); m_type = type; return(IsValid()); }
// Creates an EstimatorTag object public bool Create(string id, string description, tag_type type) { m_id = id; m_id.Trim(); m_description = description; m_description.Trim(); m_type = type; return IsValid(); }
// Creates an EstimatorTag object public bool Create(string[] items) { if (items.Length == 3) { m_id = items[0]; m_id.Trim(); m_description = items[1]; m_description.Trim(); m_type = TagType(Int32.Parse(items[2])); return(IsValid()); } return(false); }
public static tag_type TagType(int t) { tag_type type = tag_type.unknown_tag; switch (t) { case 1: type = tag_type.linear_tag; break; case 2: type = tag_type.area_tag; break; case 3: type = tag_type.volume_tag; break; case 4: type = tag_type.item_tag; break; } return(type); }
// Constructor public EstimatorTag(string id, string description, tag_type type) { Create(id, description, type); }
// Constructor public EstimatorTag() { m_id = ""; m_description = ""; m_type = tag_type.unknown_tag; }
// Creates an EstimatorTag object public bool Create(string[] items) { if (items.Length == 3) { m_id = items[0]; m_id.Trim(); m_description = items[1]; m_description.Trim(); m_type = TagType(Int32.Parse(items[2])); return IsValid(); } return false; }