Beispiel #1
0
 bool FindPerson(Person p)
 {
     return p.ID == personToFindID;
 }
Beispiel #2
0
        /// <summary>
        /// Send real-time update of this milestone with the given attributes.
        /// </summary>
        /// <param name="newTitle"></param>
        /// <param name="newDeadline"></param>
        /// <param name="newResponsible"></param>
        /// <param name="shiftOthers"></param>
        /// <param name="offWeekends"></param>
        /// <param name="notify"></param>
        public void Update(string newTitle, DateTime newDeadline, Person newResponsible,
            bool shiftOthers, bool offWeekends, bool notify)
        {
            title = newTitle;
            deadline = newDeadline;
            personID = newResponsible.ID;

            camp.Call("/milestones/update/" + id,XmlForUpdate(notify, shiftOthers, offWeekends));
        }