Exemplo n.º 1
0
        //Associating the team to GPS locations
        public void setGPSLocation(GPSLocation gpsLocation)
        {
            if (gpsLocation != null)
            {
                this.gpsLocation = gpsLocation;
            }
            else
            {
                this.gpsLocation = null;
            }

            ClassModifiedNotification(typeof(Team)); //Called so that the TeamPin registers interest in the GPSLocation upon creation
        }
Exemplo n.º 2
0
        //Create a duplicate team
        public Team(Team team)
        {
            this.name = team.name;
            this.interventionCount      = team.interventionCount;
            this.highestLevelOfTraining = team.highestLevelOfTraining;
            this.memberList             = team.memberList;
            this.equipmentList          = team.equipmentList;
            this.teamID      = team.teamID;
            this.operationID = team.operationID;
            this.status      = team.status;
            this.gpsLocation = team.gpsLocation;

            status = Statuses.moving;
            if (Operation.currentOperation != null)
            {
                this.operationID = Operation.currentOperation.getID();
            }
            splitTeamList.Add(this);

            ClassModifiedNotification(typeof(Team));
        }