Beispiel #1
0
        private bool AddPerson()
        {
            Person person = new Person();

            FormFirstStepAddPerson formFirstStepAddPerson = new FormFirstStepAddPerson(person);

            if (formFirstStepAddPerson.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                return(AddPerson(person));
            }

            return(false);
        }
        private void btnChangeOrganizationAndSubOrganization_Click(object sender, EventArgs e)
        {
            if (!TrySave())
                return;

            FormFirstStepAddPerson formFirstStepAddPerson = new FormFirstStepAddPerson(_person);
            if (formFirstStepAddPerson.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                FormSecondStepAddPerson formSecondStepAddPerson = new FormSecondStepAddPerson(_person, true);
                if (formSecondStepAddPerson.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    _changeSubOrg = true;
                    LoadData();
                }
            }
        }
Beispiel #3
0
        private void btnChangeOrganizationAndSubOrganization_Click(object sender, EventArgs e)
        {
            if (!TrySave())
            {
                return;
            }

            FormFirstStepAddPerson formFirstStepAddPerson = new FormFirstStepAddPerson(_person);

            if (formFirstStepAddPerson.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                FormSecondStepAddPerson formSecondStepAddPerson = new FormSecondStepAddPerson(_person, true);
                if (formSecondStepAddPerson.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    _changeSubOrg = true;
                    LoadData();
                }
            }
        }
        private bool AddPerson()
        {
            Person person = new Person();

            FormFirstStepAddPerson formFirstStepAddPerson = new FormFirstStepAddPerson(person);
            if (formFirstStepAddPerson.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                return AddPerson(person);
            }

            return false;
        }