32 lines
796 B
C#
32 lines
796 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace WpfApp1.Obsluga
|
|
{
|
|
public class Produkt
|
|
{
|
|
public Produkt(int id , string nazwa, int ilosc, double cena)
|
|
{
|
|
this.Id = id;
|
|
this.Nazwa = nazwa;
|
|
this.Ilosc = ilosc;
|
|
this.cena = cena;
|
|
}
|
|
|
|
private String nazwa;
|
|
private int ilosc;
|
|
private int id;
|
|
private double cena;
|
|
|
|
|
|
|
|
public string Nazwa { get => nazwa; set => nazwa = value; }
|
|
public int Ilosc { get => ilosc; set => ilosc = value; }
|
|
public int Id { get => id; set => id = value; }
|
|
public double Cena { get => cena; set => cena = value; }
|
|
}
|
|
}
|