コード例 #1
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();
            }
        }
コード例 #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();
            }
        }
コード例 #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();
        }
コード例 #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();
            }
        }
コード例 #5
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();
            }
        }
コード例 #6
0
 private bool AddPerson(Person person)
 {
     FormSecondStepAddPerson formSecondStepAddPerson = new FormSecondStepAddPerson(person);
     return (formSecondStepAddPerson.ShowDialog() == System.Windows.Forms.DialogResult.OK);
 }
コード例 #7
0
        private bool AddPerson(Person person)
        {
            FormSecondStepAddPerson formSecondStepAddPerson = new FormSecondStepAddPerson(person);

            return(formSecondStepAddPerson.ShowDialog() == System.Windows.Forms.DialogResult.OK);
        }
コード例 #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();
        }