示例#1
0
        /// <summary>
        ///  Called by the GenericMergeList method
        /// </summary>
        /// <param name="rE"></param>
        /// <returns></returns>
        SimpleEventInfo FindOrCreate(Runner.SimpleEventInfo rE)
        {
            SimpleEventInfo foundE = null;

            foreach (SimpleEventInfo p in this._eventsInfoCollection)
            {
                if (p.Name == rE.Name)
                {
                    foundE = p;
                }
            }

            if (foundE != null)
            {
                foundE.Merge(rE);
            }
            else
            {
                foundE = new SimpleEventInfo();
                foundE.Initialize(rE);
            }
            return(foundE);
        }
示例#2
0
 internal bool Merge(Discoverer.Runner.SimpleEventInfo r)
 {
     return(false);
 }
示例#3
0
 internal void Initialize(Discoverer.Runner.SimpleEventInfo r)
 {
     _name = r.Name;
 }