public Client(PersonalData name, Address lok) { if (!name.Type.Equals(Typ.KlientPrywatny)) { throw new Exception("Niezgode dane."); } ClientCreate(name, lok); }
private void ClientCreate(PersonalData name, Address lok) { IdClient = -1; Data = name; Localisation = lok; Regon = null; Nip = null; ListOfDiscount = new HashedSet <Discount>(); }
public Client(PersonalData name, Address lok, Regon reg, NIP nip) { if (!name.Type.Equals(Typ.Firma)) { throw new Exception("Niezgode dane."); } ClientCreate(name, lok); Regon = reg; Nip = nip; }
public Client() { IdClient = 1; Data = new PersonalData(); Localisation = new Address(); Regon = new Regon(); Nip = new NIP(); NumberOfPhone = new Phone(); MailToClient = new Mail(); ListOfDiscount = new HashedSet <Discount>(); }