Inheritance: System.Windows.Controls.ContentControl
Esempio n. 1
0
 protected virtual void OnPersonRemoved(Person person)
 {
 }
Esempio n. 2
0
        public void Select(Person person)
        {
            if (this.selection != null)
                this.selection.IsSelected = false;

            this.selection = person;
            if (this.selection != null)
                this.selection.IsSelected = true;
        }
Esempio n. 3
0
        protected void AddPerson(Person person)
        {
            if (this.CurrentPeopleInFlight - this.Remaining == 0)
                return;

            person.Level = this;

            this.CurrentPeopleInFlight++;

            this.peopleCanvas.Children.Add(person);

            this.waitingLine.Add(person);

            this.UpdateWaitingLine();
        }
Esempio n. 4
0
        public void RemovePerson(Person person)
        {
            this.OnPersonRemoved(person);
            this.peopleCanvas.Children.Remove(person);

            this.CurrentPeopleInFlight--;
            this.Remaining--;

            if (this.CurrentPeopleInFlight == 0 && this.Remaining == 0)
            {
                // Level is finished!
                this.OnCompleted();
            }
        }
Esempio n. 5
0
        public void RemoveFromLine(Person person)
        {
            Debug.Assert(this.waitingLine.Contains(person));

            this.waitingLine.Remove(person);
            this.UpdateWaitingLine();
        }
Esempio n. 6
0
 public void Deselect(Person person)
 {
     person.IsSelected = false;
     if (this.selection == person)
         this.selection = null;
 }
Esempio n. 7
0
 public void PersonLeft()
 {
     this.Person = null;
 }
Esempio n. 8
0
 public void PersonEntering(Person person)
 {
     this.Person = person;
 }