Dobr den,
Mam vytvoreny objekt
class Polozka
{
private int cislo;
public int Cislo
{
get { return cislo; }
set { cislo = value; }
}
private int cislofaktury;
public int Cislofaktury
{
get { return cislofaktury; }
set { cislofaktury = value; }
}
private string nazev;
public string Nazev
{
get { return nazev; }
set { nazev = value; }
}
private string mj;
public string Mj
{
get { return mj; }
set { mj = value; }
}
private int cena;
public int Cena
{
get { return cena; }
set { cena = value; }
}
private int carovykod;
public int Carovykod
{
get { return carovykod; }
set { carovykod = value; }
}
public Polozka(int cislo, int cislofaktury, string nazev, string mj, int cena, int carovykod)
{
this.cislo = cislo;
this.cislofaktury = cislofaktury;
this.nazev = nazev;
this.mj = mj;
this.cena = cena;
this.carovykod = carovykod;
}
}
A chtel bych se zeptat jak pomoci foreache vypisu do listview?
Dekuji moc za pomoc