private void btnChangeSubOrganization_Click(object sender, EventArgs e)
        {
            if (!TrySave())
                return;

            FormSecondStepAddPerson formSecondStepAddPerson = new FormSecondStepAddPerson(_person, true);
            if (formSecondStepAddPerson.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                _changeSubOrg = true;
                LoadData();
            }
        }
Esempio n. 2
0
        private void btnChangeSubOrganization_Click(object sender, EventArgs e)
        {
            if (!TrySave())
            {
                return;
            }

            FormSecondStepAddPerson formSecondStepAddPerson = new FormSecondStepAddPerson(_person, true);

            if (formSecondStepAddPerson.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                _changeSubOrg = true;
                LoadData();
            }
        }
Esempio n. 3
0
        private void btnAddPerson_Click(object sender, EventArgs e)
        {
            if (_lpu.ID == 0)
            {
                if (!TrySave())
                {
                    return;
                }
            }

            Person person = new Person();

            person.Organization = _lpu;

            FormSecondStepAddPerson formSecondStepAddPerson = new FormSecondStepAddPerson(person);

            formSecondStepAddPerson.ShowDialog();
        }
Esempio n. 4
0
        public void AddPerson()
        {
            Organization organization = GetOrganization();

            Person person = new Person();

            person.Organization = organization;

            bool open = true;

            if (organization is LPU)
            {
                FormSecondStepAddPerson formSecondStepAddPerson = new FormSecondStepAddPerson(person);
                open = (formSecondStepAddPerson.ShowDialog() == System.Windows.Forms.DialogResult.OK);
            }

            if (open)
            {
                FormAddPerson formAddPerson = new FormAddPerson(person);
                formAddPerson.ShowDialog();
            }
        }
        public void AddPerson()
        {
            Organization organization = GetOrganization();

            Person person = new Person();
            person.Organization = organization;

            bool open = true;

            if (organization is LPU)
            {
                FormSecondStepAddPerson formSecondStepAddPerson = new FormSecondStepAddPerson(person);
                open = (formSecondStepAddPerson.ShowDialog() == System.Windows.Forms.DialogResult.OK);
            }

            if (open)
            {
                FormAddPerson formAddPerson = new FormAddPerson(person);
                formAddPerson.ShowDialog();
            }
        }
 private bool AddPerson(Person person)
 {
     FormSecondStepAddPerson formSecondStepAddPerson = new FormSecondStepAddPerson(person);
     return (formSecondStepAddPerson.ShowDialog() == System.Windows.Forms.DialogResult.OK);
 }
Esempio n. 7
0
        private bool AddPerson(Person person)
        {
            FormSecondStepAddPerson formSecondStepAddPerson = new FormSecondStepAddPerson(person);

            return(formSecondStepAddPerson.ShowDialog() == System.Windows.Forms.DialogResult.OK);
        }
Esempio n. 8
0
        private void btnAddPerson_Click(object sender, EventArgs e)
        {
            if (_lpu.ID == 0)
            {
                if (!TrySave())
                    return;
            }

            Person person = new Person();
            person.Organization = _lpu;

            FormSecondStepAddPerson formSecondStepAddPerson = new FormSecondStepAddPerson(person);
            formSecondStepAddPerson.ShowDialog();
        }