상속: System.Windows.Controls.ContentControl
예제 #1
0
파일: Level.cs 프로젝트: ibdknox/swred
 protected virtual void OnPersonRemoved(Person person)
 {
 }
예제 #2
0
파일: Level.cs 프로젝트: ibdknox/swred
        public void Select(Person person)
        {
            if (this.selection != null)
                this.selection.IsSelected = false;

            this.selection = person;
            if (this.selection != null)
                this.selection.IsSelected = true;
        }
예제 #3
0
파일: Level.cs 프로젝트: ibdknox/swred
        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();
        }
예제 #4
0
파일: Level.cs 프로젝트: ibdknox/swred
        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();
            }
        }
예제 #5
0
파일: Level.cs 프로젝트: ibdknox/swred
        public void RemoveFromLine(Person person)
        {
            Debug.Assert(this.waitingLine.Contains(person));

            this.waitingLine.Remove(person);
            this.UpdateWaitingLine();
        }
예제 #6
0
파일: Level.cs 프로젝트: ibdknox/swred
 public void Deselect(Person person)
 {
     person.IsSelected = false;
     if (this.selection == person)
         this.selection = null;
 }
예제 #7
0
파일: Stall.cs 프로젝트: ibdknox/swred
 public void PersonLeft()
 {
     this.Person = null;
 }
예제 #8
0
파일: Stall.cs 프로젝트: ibdknox/swred
 public void PersonEntering(Person person)
 {
     this.Person = person;
 }