예제 #1
0
 // 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());
 }
예제 #2
0
 // 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();
 }
예제 #3
0
 // 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);
 }
예제 #4
0
        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);
        }
예제 #5
0
 // Constructor
 public EstimatorTag(string id, string description, tag_type type)
 {
     Create(id, description, type);
 }
예제 #6
0
 // Constructor
 public EstimatorTag()
 {
     m_id          = "";
     m_description = "";
     m_type        = tag_type.unknown_tag;
 }
예제 #7
0
 // 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;
 }
예제 #8
0
 // Constructor
 public EstimatorTag(string id, string description, tag_type type)
 {
     Create(id, description, type);
 }
예제 #9
0
 // Constructor
 public EstimatorTag()
 {
     m_id = "";
       m_description = "";
       m_type = tag_type.unknown_tag;
 }