Exemple #1
0
        public object Clone()
        {
            RegDoctor regDoctor = (RegDoctor)base.MemberwiseClone();

            regDoctor.Tags         = new string[this.Tags.Length];
            regDoctor.ToolTipTexts = new string[this.ToolTipTexts.Length];
            regDoctor.Values       = new string[this.Values.Length];
            System.Array.Copy(this.Values, regDoctor.Values, this.Values.Length);
            System.Array.Copy(this.ToolTipTexts, regDoctor.ToolTipTexts, this.ToolTipTexts.Length);
            System.Array.Copy(this.Tags, regDoctor.Tags, this.Tags.Length);
            return(regDoctor);
        }
Exemple #2
0
 public void AddDoctor(RegDoctor doctor)
 {
     if (this.RealCount < this.ListDoctors.Count)
     {
         this.ListDoctors[this.RealCount].Name = doctor.Name;
         for (int i = 0; i < doctor.Values.Length; i++)
         {
             this.ListDoctors[this.RealCount].Values[i]       = doctor.Values[i];
             this.ListDoctors[this.RealCount].ToolTipTexts[i] = doctor.ToolTipTexts[i];
             this.ListDoctors[this.RealCount].Tags[i]         = doctor.Tags[i];
         }
     }
     else
     {
         this.ListDoctors.Add((RegDoctor)doctor.Clone());
     }
     this.RealCount++;
 }
 public void AddDoctor(RegDoctor doctor)
 {
     if (this.RealCount < this.ListDoctors.Count)
     {
         this.ListDoctors[this.RealCount].Name = doctor.Name;
         for (int i = 0; i < doctor.Values.Length; i++)
         {
             this.ListDoctors[this.RealCount].Values[i] = doctor.Values[i];
             this.ListDoctors[this.RealCount].ToolTipTexts[i] = doctor.ToolTipTexts[i];
             this.ListDoctors[this.RealCount].Tags[i] = doctor.Tags[i];
         }
     }
     else
     {
         this.ListDoctors.Add((RegDoctor)doctor.Clone());
     }
     this.RealCount++;
 }