private void BtnAddPerson_Click(object sender, EventArgs e)
        {
            var addForm = new FrmNewPerson(Person);

            if (addForm.ShowDialog() == DialogResult.OK)
            {
                Person = addForm.Person;
                TxtRecipientName.Text = Person.Name;
                BtnContinue.Enabled   = true;
                useNewPerson          = true;
            }
        }
        private void BtnAddPerson_Click(object sender, EventArgs e)
        {
            var addForm = new FrmNewPerson(NewPerson);

            if (addForm.ShowDialog(this) == DialogResult.OK)
            {
                NewPerson             = addForm.Person;
                TxtRecipientName.Text = NewPerson.Name;
                BtnSelect.Enabled     = true;
                useNewPerson          = true;
            }
            DialogResult = DialogResult.None;
        }
Example #3
0
        private void BtnAddPerson_Click(object sender, EventArgs e)
        {
            var addForm = new FrmNewPerson(Person);

            if (addForm.ShowDialog() == DialogResult.OK)
            {
                Person = addForm.Person;
                TxtRecipientName.Text = Person.Name;
                TxtBadgeName.Text     = Person.BadgeName;
                useNewPerson          = true;
                BtnIssue.Enabled      = (TxtDepartment.TextLength > 0) && ((LstPeople.SelectedItems.Count > 0) || People != null);
            }
        }