public StudentModel(ArchiveModel data)
 {
     Id        = data.Id;
     Name      = data.FName;
     LastName  = data.LName;
     PictureId = PictureBackend.Instance.GetFirstPictureId();
 }
Пример #2
0
 /// <summary>
 /// ArchiveModel constructor, call this one when remove student from archive list
 /// </summary>
 /// <param name="data"></param>
 public ArchiveModel(ArchiveModel data)
 {
     Id     = data.Id;
     FName  = data.FName;
     LName  = data.LName;
     SYear  = data.SYear;
     Status = data.Status;
 }
Пример #3
0
        /// <summary>
        /// Update the Data Fields with the values passed in, do not update the ID.
        /// </summary>
        /// <param name="data">The values to update</param>
        /// <returns>False if null, else true</returns>
        public bool Update(ArchiveModel data)
        {
            if (data == null)
            {
                return(false);
            }

            FName  = data.FName;
            LName  = data.LName;
            SYear  = data.SYear;
            Status = data.Status;
            return(true);
        }