private void LoadAllSizes() { dlSizes.Items.Clear(); dlSizeUpdate.Items.Clear(); foreach (Size size in SM.Sizes()) { dlSizes.Items.Add(new ListItem(size.SizeDescription, size.SizeCode)); dlSizeUpdate.Items.Add(new ListItem(size.SizeDescription, size.SizeCode)); } }
private void LoadSizes(string[] search_parameter = null) { if (search_parameter != null) { this.gvSizesList.DataSource = SM.SearchSizes(search_parameter); this.gvSizesList.DataBind(); } else { this.gvSizesList.DataSource = SM.Sizes(); this.gvSizesList.DataBind(); } }
private long GetAllSizes() { return(SM.Sizes().Count); }