Пример #1
0
        RentTable rentTable; //教室使用情况

        #endregion Fields

        #region Constructors

        public Classroom(int id, string name, Building building, RentTable rentTable = null)
        {
            this.id = id;
            this.name = name;
            this.building = building;

            this.rentTable = rentTable;
            if (null == this.rentTable) this.rentTable = new RentTable();
        }
Пример #2
0
        public User(int id, string name, string department="Unknown", RentTable schedule= null, RentTable applyingList = null)
        {
            this.name = name;
            this.department = department;

            this.schedule = schedule;
            if (null == this.schedule) this.schedule = new RentTable();

            this.applyingList = applyingList;
            if (null == this.applyingList) this.applyingList = new RentTable();
        }