Ejemplo n.º 1
0
        private Article FillArticle(SklepDBDataSet.ArticlesRow article, string imagePath)
        {
            Article art = new Article();
            art.Name =article.Name;
            art.Price = article.Price;
            art.ImagePath =imagePath+ article.ImagePath;
            art.ImagePathAlt = article.IsImagePathAltNull() ?imagePath+ "noname.png" : imagePath+article.ImagePathAlt;
            art.IsForShooping = article.IsForShoping;
            art.Quantity = article.Quantity;
            art.PlaceNo = article.PlaceNo;
            art.DeskNo = article.DeskNo;

            return art;
        }
Ejemplo n.º 2
0
 private void InicializeArticles(string imagePath)
 {
     sklepDBDataSet = new SklepDBDataSet();
     sklepArticlesTableAdapter = new ArticlesTableAdapter();
     sklepArticlesTableAdapter.Fill(sklepDBDataSet.Articles);
     GetArticlesFromDataSet(imagePath);
 }