예제 #1
0
 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();
 }
예제 #2
0
        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);
            }
        }
예제 #3
0
 public ViewContacts()
 {
     InitializeComponent();
     adminPersoane = StocareFactory.GetAdministratorStocare();
 }
예제 #4
0
 public Form1()
 {
     InitializeComponent();
     adminContacte = StocareFactory.GetAdministratorStocare();
 }