示例#1
0
        public void CloneFrom(Student item)
        {
            this.Name = item.Name;
            this.Identity = item.Identity;
            this.StartTime = item.StartTime;
            this.Contact = item.Contact;
            this.EndTime = item.EndTime;
            this.Note = item.Note;

            foreach (StudyItem key in Enum.GetValues(typeof(StudyItem)))
            {
                this.StudyItemSetter(key, "");
                string newValue = item.StudyItemGetter(key);
                this.StudyItemSetter(key, newValue);
            }
        }