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