Exemplo n.º 1
0
        /// <summary>
        /// Adds a new TagType to the system, and calls TagFactory to add it to the
        /// reference file.
        /// </summary>
        /// <param name="name">The name of the TagType to be created.</param>
        /// <param name="dataType">The datatype of the TagType to be created.</param>
        public void addTagType(string name, int dataType)
        {
            TagType newTagType = new TagType(dataType, name);

            tagTypeList.Add(name, newTagType);
            tagFactory.writeTagType(newTagType);
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            TagFactory factory = TagFactory.getInstance();

            factory.writeTagType(new TagType(Int16.Parse(textBox2.Text), textBox1.Text));
        }