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(); } }
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(); } }
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(); }
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); }
private bool AddPerson(Person person) { FormSecondStepAddPerson formSecondStepAddPerson = new FormSecondStepAddPerson(person); return(formSecondStepAddPerson.ShowDialog() == System.Windows.Forms.DialogResult.OK); }
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(); }