Inheritance: System.Windows.Controls.ContentControl
Beispiel #1
0
 protected virtual void OnPersonRemoved(Person person)
 {
 }
Beispiel #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;
        }
Beispiel #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();
        }
Beispiel #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();
            }
        }
Beispiel #5
0
        public void RemoveFromLine(Person person)
        {
            Debug.Assert(this.waitingLine.Contains(person));

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