Example #1
0
 public Farmacie(int id, string nume, int pret, int numar, Prescriptie pr, EfecteSecundare ef)
 {
     MedID           = id;
     MedNume         = nume;
     MedPret         = pret;
     MedNr           = numar;
     prescriptie     = pr;
     efecteSecundare = ef;
 }
Example #2
0
 public Farmacie()
 {
     MedID           = 0;
     MedNume         = null;
     MedPret         = 0;
     MedNr           = 0;
     prescriptie     = Prescriptie.Fara;
     efecteSecundare = EfecteSecundare.Nimic;
 }
Example #3
0
 public Farmacie(string linie)
 {
     string[] componente = linie.Split(',');
     medID           = int.Parse(componente[0]);
     medNume         = componente[1];
     medPret         = int.Parse(componente[2]);
     medNr           = int.Parse(componente[3]);
     prescriptie     = (Prescriptie)int.Parse(componente[4]);
     efecteSecundare = (EfecteSecundare)int.Parse(componente[5]);
 }