/// <summary>
        /// 把学校信息转换为可以显示的信息
        /// </summary>
        /// <param name="campus"></param>
        public void ShowCampusDetail(AMS.Model.AMS_Campus campus)
        {
            CampusInfo campusDetail = new CampusInfo();

            campusDetail.Id          = campus.Id;
            campusDetail.Name        = campus.Name;
            campusDetail.Number      = campus.Number;
            campusDetail.Address     = campus.Address;
            campusDetail.DeviceCount = campus.Device.Count;
            this.CampusDetail        = campusDetail;
        }
        /// <summary>
        /// 学校信息转换成要显示的列表并显示
        /// </summary>
        /// <param name="school"></param>
        /// <returns></returns>
        public List <CampusInfo> ConvertToCampusList(AMS.Model.AMS_School school)
        {
            List <CampusInfo> campuses = new List <CampusInfo>();

            for (int i = 0; i < school.Campus.Count; i++)
            {
                CampusInfo campus = new CampusInfo();
                campus.Id          = school.Campus[i].Id;
                campus.Name        = school.Campus[i].Name;
                campus.Number      = school.Campus[i].Number;
                campus.Address     = school.Campus[i].Address;
                campus.DeviceCount = school.Campus[i].Device.Count;
                campuses.Add(campus);
            }
            CampusList = campuses;
            return(campuses);
        }