Example #1
0
 private void LoadAllColors()
 {
     dlColors.Items.Clear();
     dlColorUpdate.Items.Clear();
     foreach (Color color in CM.Colors())
     {
         dlColors.Items.Add(new ListItem(color.ColorDescription, color.ColorCode));
         dlColorUpdate.Items.Add(new ListItem(color.ColorDescription, color.ColorCode));
     }
 }
 private void LoadAllColors(string[] search_parameters = null)
 {
     if (search_parameters != null)
     {
         gvColorsList.DataSource = CM.SearchColors(search_parameters);
         gvColorsList.DataBind();
     }
     else
     {
         gvColorsList.DataSource = CM.Colors();
         gvColorsList.DataBind();
     }
 }
 private long GetAllColors()
 {
     return(ColorM.Colors().Count);
 }