private void btnSelectLeader_Click(object sender, EventArgs e)
 {
     if (this.editingMilitary != null)
     {
         frmSelectPersonList list = new frmSelectPersonList();
         list.Persons   = this.editingMilitary.Scenario.Persons;
         list.SelectOne = true;
         list.ShowDialog();
         if (list.IDList.Count == 1)
         {
             this.tbLeaderID.Text = list.IDList[0].ToString();
         }
     }
 }
        private void btnSetBelongedPerson_Click(object sender, EventArgs e)
        {
            frmSelectPersonList list = new frmSelectPersonList();

            list.SelectOne = true;
            list.Persons   = this.Scenario.Persons;
            list.ShowDialog();
            if (list.SelectedPerson != null)
            {
                this.EditingTreasure.BelongedPerson = list.SelectedPerson;
                this.EditingTreasure.Available      = this.EditingTreasure.BelongedPerson.Available;
                this.lbBelongedPerson.Text          = this.EditingTreasure.BelongedPersonString;
            }
        }
 private void btnSelectFollowedLeaderInCurrentArchitecture_Click(object sender, EventArgs e)
 {
     if ((this.CurrentArchitecture != null) && (this.editingMilitary != null))
     {
         frmSelectPersonList list = new frmSelectPersonList();
         list.Persons   = this.CurrentArchitecture.Persons;
         list.SelectOne = true;
         list.ShowDialog();
         if (list.IDList.Count == 1)
         {
             this.tbFollowedLeaderID.Text = list.IDList[0].ToString();
         }
     }
 }
        private void button1_Click(object sender, EventArgs e)
        {
            frmSelectPersonList list = new frmSelectPersonList();

            list.Persons   = this.Scenario.Persons;
            list.SelectOne = true;
            list.ShowDialog();
            if (list.IDList.Count == 1)
            {
                this.Dialog.SpeakingPerson = this.Scenario.Persons.GetGameObject(list.IDList[0]) as Person;
                if (this.Dialog.SpeakingPerson != null)
                {
                    this.lbPerson.Text = this.Dialog.SpeakingPerson.Name;
                }
            }
        }