public Retete()
 {
     this.medicR     = null;
     this.pacientR   = null;
     this.indicatiiR = "";
     this.pacient    = null;
 }
 public Retete(Medic medicR, Pacient pacientR, String indicatiiR, Pacient p)
 {
     this.medicR     = medicR;
     this.pacientR   = pacientR;
     this.indicatiiR = indicatiiR;
     this.Pacient    = p;
 }
Example #3
0
        public Pacient Clone()
        {
            Pacient p1 = (Pacient)((ICloneable)this).Clone();

            p1.id++;
            return(p1);
            //deep copy
        }
Example #4
0
        public int CompareTo(object obj)
        {
            Pacient p = (Pacient)obj;

            if (this.varstaPacient > p.varstaPacient)
            {
                return(1);
            }
            else if (this.varstaPacient < p.varstaPacient)
            {
                return(-1);
            }
            else
            {
                return(String.Compare(this.nume, p.nume));
            }
        }