public Retete(int codReteta, Medici medic, Pacienti pacient, string diagnostic, string data)
 {
     this.codRetete  = codReteta;
     this.medic      = medic;
     this.pacient    = pacient;
     this.diagnostic = diagnostic;
     this.data       = data;
 }
Example #2
0
        public static Medici operator+(Medici m, Pacienti p)
        {
            Medici m2 = (Medici)m.Clone();

            Pacienti[] vectorNou = new Pacienti[m.vectorPacienti.Length + 1];
            for (int i = 0; i < m.vectorPacienti.Length; i++)
            {
                vectorNou[i] = (Pacienti)m.vectorPacienti[i].Clone();
            }
            vectorNou[vectorNou.Length] = (Pacienti)p.Clone();
            m2.vectorPacienti           = vectorNou;
            return(m2);
        }
Example #3
0
        public int CompareTo(object obj)
        {
            Medici m1 = (Medici)obj;

            if ((this.specializare).CompareTo(m1.specializare) == 0)
            {
                return(0);
            }
            else if ((this.specializare).CompareTo(m1.specializare) == 1)
            {
                return(1);
            }
            return(-1);
        }
Example #4
0
        public object Clone()
        {
            Medici m = (Medici)this.MemberwiseClone();

            return(m);
        }