public EditContact(Persoana pers) { InitializeComponent(); txtNume.Text = pers.Nume; txtPrenume.Text = pers.Prenume; txtTelefon.Text = pers.NumarTelefon; txtEmail.Text = pers.Email; foreach (string str in pers.Grupuri) { if (str == "Prieteni") { ckPrieteni.Checked = true; } if (str == "Familie") { ckFamilie.Checked = true; } if (str == "Servici") { ckServici.Checked = true; } } dataNasterii.Value = pers.DataNasterii; id = pers.IdPersoana; if (pers.Gen == Gen.Masculin) { rdbMasculin.Checked = true; } if (pers.Gen == Gen.Feminin) { rdbFeminin.Checked = true; } adminPersoane = StocareFactory.GetAdministratorStocare(); }
public PaginaPrincipla() { InitializeComponent(); adminContacte = StocareFactory.GetAdministratorStocare(); List <Persoana> sarbatoriti = adminContacte.CautareDupaDataCurenta(); if (sarbatoriti.Count != 0) { string mesaj = "Sarbatoritii de astazi: \n"; foreach (var pers in sarbatoriti) { mesaj += pers.NumeComplet + "\n"; } mesaj += "Salutai cu un sincer, La multi ani!!!"; MessageBox.Show(mesaj); } }
public ViewContacts() { InitializeComponent(); adminPersoane = StocareFactory.GetAdministratorStocare(); }
public Form1() { InitializeComponent(); adminContacte = StocareFactory.GetAdministratorStocare(); }