コード例 #1
0
 public Article(DataBaseArticle databaseArticle)
 {
     Reference   = databaseArticle.Reference;
     Designation = databaseArticle.Designation;
     PrixVente   = databaseArticle.PrixVente;
     QteStock    = databaseArticle.QteStock;
     IsVisible   = !databaseArticle.Sommeil;
 }
コード例 #2
0
        public Article RechercheParRef(string reference)
        {
            DataBaseArticle dbTempArticle = DbManager.RechercheParRef(reference);

            if (dbTempArticle == null)
            {
                return(null);
            }
            else
            {
                return(new Article(dbTempArticle));
            }
        }