Exemplo n.º 1
0
        public override bool Equals(object obj)
        {
            var prowadzacy = obj as Prowadzacy;

            if (prowadzacy is null)
            {
                return(false);
            }
            if (Imie.ToLower() != prowadzacy.Imie.ToLower())
            {
                return(false);
            }
            if (Nazwisko.ToLower() != prowadzacy.Nazwisko.ToLower())
            {
                return(false);
            }
            if (Tytul.ToLower() != prowadzacy.Tytul.ToLower())
            {
                return(false);
            }
            if (Email.ToLower() != prowadzacy.Email.ToLower())
            {
                return(false);
            }
            return(true);
        }
 public override bool CzyPasuje(INotatka notatka)
 {
     if (!notatka.Tytul.ToLower().Contains(Tytul.ToLower()))
     {
         return(false);
     }
     return(filtr.CzyPasuje(notatka));
 }
Exemplo n.º 3
0
 public Klient(string imie, string nazwisko, string email, string telefon, string dataUrodzenia, Tytul tytul)
 {
     Imie     = imie;
     Nazwisko = nazwisko;
     Email    = email;
     Telefon  = telefon;
     DateTime.TryParse(dataUrodzenia, out this.dataUrodzenia);
     this.tytul = tytul;
     this.id    = ++bieżącyNumerKlienta;
 }
Exemplo n.º 4
0
        public JObject PobierzDaneZMovieDb()
        {
            if (Tytul == null && TytulOrg == null)
            {
                return(null);
            }
            string tytul;

            if (TytulOrg != null && !TytulOrg.Equals(""))
            {
                tytul = TytulOrg;
            }
            else if (Tytul != null && !Tytul.Equals(""))
            {
                tytul = Tytul;
            }
            else
            {
                return(null);
            }
            return(LoadDataFromMovieDB(tytul));
        }
Exemplo n.º 5
0
 public override String ToString()
 {
     return("Klucz: " + Klucz.ToString() + " Tytul: " + Tytul.ToString() + " Autor: " + Autor.ToString() + " Opis: " + Opis.ToString());
 }
Exemplo n.º 6
0
 public Klient(string imie, string nazwisko, string email, string telefon, string pesel, DateTime data, Tytul tytul1, ulong liczbaKlientow)
 {
     this.imie     = imie;
     this.nazwisko = nazwisko;
     this.email    = email;
     this.telefon  = telefon;
     this.pesel    = pesel;
 }
Exemplo n.º 7
0
 public Klient(string imie, string nazwisko, string email, string telefon, string dataUrodzenia, string pesel, Tytul tytul, uint id)
 {
     Imie     = imie;
     Nazwisko = nazwisko;
     Email    = email;
     Telefon  = telefon;
     DateTime.TryParse(dataUrodzenia, out this.dataUrodzenia);
     this.Pesel  = pesel;
     this.Tytul1 = tytul;
     this.id     = id;
 }