예제 #1
0
 public string dajPodatkeOZatvoreniku()
 {
     return("Ime: " + Ime + Environment.NewLine +
            "Prezime: " + Prezime + Environment.NewLine +
            "Adresa: " + Adresa + Environment.NewLine +
            "Datum rođenja: " + DatumRodjenja + Environment.NewLine +
            "ID: " + Id + Environment.NewLine +
            "Spol: " + Spol.ToString() + Environment.NewLine +
            "Blok: " + Blok.ToString() + Environment.NewLine +
            "Broj čelije: " + BrojCelije.ToString() + Environment.NewLine +
            "Datum dolaska: " + DatumDolaska.ToShortDateString() + Environment.NewLine +
            "Datum puštanja na slobodu: " + DatumOdlaska.ToShortDateString() + Environment.NewLine +
            "Aktivnosti i napomene: " + Environment.NewLine + " -" + Napomene);
 }
예제 #2
0
 public override string ToString() => $"{IDRezervacije}; {BrojSobe}; {DatumDolaska.ToShortDateString()}-{DatumOdlaska.ToShortDateString()}";