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

            regDoctor.OrderUrls      = new string[OrderUrls.Length];
            regDoctor.ToolTipTexts   = new string[ToolTipTexts.Length];
            regDoctor.RemainNums     = new string[RemainNums.Length];
            regDoctor.RegistionTypes = new RegistionType[ToolTipTexts.Length];
            Array.Copy(RemainNums, regDoctor.RemainNums, RemainNums.Length);
            Array.Copy(ToolTipTexts, regDoctor.ToolTipTexts, ToolTipTexts.Length);
            Array.Copy(OrderUrls, regDoctor.OrderUrls, OrderUrls.Length);
            Array.Copy(RegistionTypes, regDoctor.RegistionTypes, RegistionTypes.Length);
            return(regDoctor);
        }
Exemple #2
0
 public void AddDoctorRegInfo(DoctorRegInfo doctorRegInfo)
 {
     if (m_nCurrentIndex < doctorRegInfoList.Count)
     {
         doctorRegInfoList[m_nCurrentIndex].Name = doctorRegInfo.Name;
         for (int i = 0; i < TOTAL_DAYS * 2; i++)
         {
             doctorRegInfoList[m_nCurrentIndex].RemainNums[i]     = doctorRegInfo.RemainNums[i];
             doctorRegInfoList[m_nCurrentIndex].ToolTipTexts[i]   = doctorRegInfo.ToolTipTexts[i];
             doctorRegInfoList[m_nCurrentIndex].OrderUrls[i]      = doctorRegInfo.OrderUrls[i];
             doctorRegInfoList[m_nCurrentIndex].RegistionTypes[i] = doctorRegInfo.RegistionTypes[i];
         }
     }
     else
     {
         doctorRegInfoList.Add((DoctorRegInfo)doctorRegInfo.Clone());
     }
     m_nCurrentIndex++;
 }