예제 #1
0
파일: Artikel.cs 프로젝트: Mortion/Uses
 public Artikel(Product p, int aantal)
 {
     this.Code = p.Code;
     this.Naam = p.Naam;
     this.Prijs = p.Prijs;
     this.Aantal = aantal;
 }
예제 #2
0
        private void initProducten()
        {

            producten.Clear();
            //TODO
            StreamReader file = new StreamReader(path + "producten.txt");
            string lijn;
            while ((lijn = file.ReadLine()) != null)
            {
                string[] appart = lijn.Split('|');

               
                    Product pr = new Product();
                    pr.Code = Convert.ToInt32(appart[0]);
                    pr.Naam = appart[1];
                    pr.Prijs = Convert.ToDouble( appart[2]);
                    producten.Add(pr);
                
            }

            file.Close();
            

        }
예제 #3
0
파일: Product.cs 프로젝트: Mortion/Uses
        //template voor latere functionaliteit

        public Product(Product product)
        {
            this.Code = product.Code;
            this.Naam = product.Naam;
            this.Prijs = product.Prijs;
        }