Ejemplo n.º 1
0
        internal bool PopShList(List <Showlight> list)
        {
            if (ShowlightList.Count == 0)
            {
                ShowlightList.AddRange(list);
            }
            else
            {
                try {
                    var comp = new EqShowlight();
                    ShowlightList = list.Union(ShowlightList, comp).OrderBy(x => x.Time).ToList <Showlight>();
                    ShowlightList.TrimExcess();
                }
                catch {
                    return(false);
                }
            }

            return(true);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Populates current showlights list.
 /// </summary>
 /// <param name="list"></param>
 /// <returns>true if success.</returns>
 public bool PopShList(List <Showlight> list)
 {
     if (ShowlightList.Count == 0)
     {
         ShowlightList.AddRange(list);
     }
     else
     {
         try
         {
             ShowlightList = ShowlightList.Union(list).OrderBy(x => x.Time).ToList();
             ShowlightList.TrimExcess();
         }
         catch (Exception)
         {
             return(false);
         }
     }
     return(true);
 }