Exemplo n.º 1
0
 /// <summary>
 /// 添加EventProperty,若包含已有TypeID则返回错误。
 /// </summary>
 /// <param name="eventPro"></param>
 /// <returns></returns>
 public bool AddEventProcess(EventProperty <TransmissionCotrolFunction> eventPro)
 {
     //首先检测是否含有指定的TypID
     if (eventList.Find(x => x.TypeID == eventPro.TypeID) == null)
     {
         eventList.Add(eventPro);
         return(true);
     }
     return(false);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 添加EventProperty,若包含已有TypeID则返回错误。
 /// </summary>
 /// <param name="eventPro"></param>
 /// <returns></returns>
 public bool AddEventProcess(EventProperty eventPro)
 {
     //首先检测是否含有指定的TypID
     if (eventList.Find(x => x.TypeID == eventPro.TypeID) == null)
     {
         eventList.Add(eventPro);
         return(true);
     }
     return(false);
 }