/// <summary>
 /// Save Style Colors.
 /// </summary>
 /// <param name="Style"></param>                  
 /// <param name="Colors"></param>
 public void Save(ItemStyle Style, List<Color> Colors)
 {
     using (DbManager db = new DbManager())
     {
         foreach (Color color in Colors)
         {
             var style_color = new StyleColor{
                 ColorCode = color.ColorCode,
                 StyleNumber = Style.StyleNumber,
                 DateCreated = DateTime.Now,
             };
             Accessor.Query.Insert(db, style_color);
         }
     }
 }
 private bool CheckIfColorAlreadyExist(Color color)
 {
     bool result;
     var colors_list = (from color_ in StyleColorManager.StyleColors()
                       where color_.ColorCode == color.ColorCode
                       select color_).ToList<StyleColor>();
     StyleColor s_color = new StyleColor();
     foreach (StyleColor _scolor in colors_list)
     {
         s_color = _scolor;
     }
     if (s_color.RecordNo > 0)
     {
         result = true;
     }
     else
     {
         result = false;
     }
     return result;
 }