Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="slot_"></param>
        private void AddSlot(SequenceFunctionSlot slot_)
        {
            slot_.IsArray      = false;
            slot_.VariableType = typeof(int);

            m_Slots.Add(slot_);

            if (FunctionSlotChanged != null)
            {
                FunctionSlotChanged(this, new FunctionSlotChangedEventArg(FunctionSlotChangedType.Added, slot_));
            }
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="node_"></param>
        public override void Load(XmlNode node_)
        {
            base.Load(node_);

            foreach (XmlNode node in node_.SelectNodes("SlotList/Slot"))
            {
                int id = int.Parse(node.Attributes["id"].Value);
                FunctionSlotType type = (FunctionSlotType)Enum.Parse(typeof(FunctionSlotType), node.Attributes["type"].Value);

                if (m_NextSlotId <= id)
                {
                    m_NextSlotId = id + 1;
                }

                SequenceFunctionSlot slot = new SequenceFunctionSlot(id, type);
                slot.Name         = node.Attributes["name"].Value;
                slot.IsArray      = bool.Parse(node.Attributes["isArray"].Value);
                slot.VariableType = Type.GetType(node.Attributes["varType"].Value);

                m_Slots.Add(slot);
            }
        }
Esempio n. 3
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="slot_"></param>
        private void AddSlot(SequenceFunctionSlot slot_)
        {
            slot_.IsArray = false;
            slot_.VariableType = typeof(int);

            m_Slots.Add(slot_);

            if (FunctionSlotChanged != null)
            {
                FunctionSlotChanged(this, new FunctionSlotChangedEventArg(FunctionSlotChangedType.Added, slot_));
            }
        }
Esempio n. 4
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="node_"></param>
        public override void Load(XmlNode node_)
        {
            base.Load(node_);

            foreach (XmlNode node in node_.SelectNodes("SlotList/Slot"))
            {
                int id = int.Parse(node.Attributes["id"].Value);
                FunctionSlotType type = (FunctionSlotType) Enum.Parse(typeof(FunctionSlotType), node.Attributes["type"].Value);

                if (m_NextSlotId <= id) m_NextSlotId = id + 1;

                SequenceFunctionSlot slot = new SequenceFunctionSlot(id, type);
                slot.Name = node.Attributes["name"].Value;
                slot.IsArray = bool.Parse(node.Attributes["isArray"].Value);
                slot.VariableType = Type.GetType(node.Attributes["varType"].Value);

                m_Slots.Add(slot);
            }
        }
Esempio n. 5
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="type_"></param>
 /// <param name="slot_"></param>
 public FunctionSlotChangedEventArg(FunctionSlotChangedType type_, SequenceFunctionSlot slot_)
 {
     Type = type_;
     FunctionSlot = slot_;
 }
Esempio n. 6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="type_"></param>
 /// <param name="slot_"></param>
 public FunctionSlotChangedEventArg(FunctionSlotChangedType type_, SequenceFunctionSlot slot_)
 {
     Type         = type_;
     FunctionSlot = slot_;
 }