void RefreshCategorias() { DBCategoriaDataContext catContext = new DBCategoriaDataContext(); List<Categoria> categoriasSni = catContext.Select(Snippet); foreach (Categoria cat in categoriasSni) lstCategoriesSni.Items.Add(cat); }
public SnippetView() { this.InitializeComponent(); DBCategoriaDataContext catContext = new DBCategoriaDataContext(); List<Categoria> categorias = catContext.SelectAll(); foreach (Categoria cat in categorias) lstCategories.Items.Add(cat); }
private void CargarCategorias() { DBCategoriaDataContext catContext = new DBCategoriaDataContext(); List<Categoria> categorias = catContext.SelectAll(); foreach (Categoria cat in categorias) lstCategorias.Items.Add(cat); }