示例#1
0
        public TriggerCollection GetSavedTriggers()
        {
            TriggerCollection collection = new TriggerCollection();

            foreach (Trigger trigger in m_triggerList)
            {
                // XXX if(save)
                collection.Add(trigger);
            }
            return(collection);
        }
示例#2
0
        public void SetTriggers(TriggerCollection triggers)
        {
            m_triggerList.Clear();

            if (triggers == null)
            {
                return;
            }

            foreach (Trigger trigger in triggers)
            {
                AddTrigger(trigger);
            }
        }