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)); }
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; }
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)); }
public override String ToString() { return("Klucz: " + Klucz.ToString() + " Tytul: " + Tytul.ToString() + " Autor: " + Autor.ToString() + " Opis: " + Opis.ToString()); }
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; }
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; }