private void ShowFormSubLPU(Organization organization) { bool result = false; if (organization is LPU) { FormAddLPU formAddLPU = new FormAddLPU(organization as LPU); result = (formAddLPU.ShowDialog() == System.Windows.Forms.DialogResult.OK); } else { FormAddOrganization formAddOrganization = new FormAddOrganization(organization); result = (formAddOrganization.ShowDialog() == System.Windows.Forms.DialogResult.OK); } if (result) { LoadTree(); } }
private void ShowFormSubLPU(Organization organization) { bool result = false; if (organization is LPU) { FormAddLPU formAddLPU = new FormAddLPU(organization as LPU); result = (formAddLPU.ShowDialog() == System.Windows.Forms.DialogResult.OK); } else { FormAddOrganization formAddOrganization = new FormAddOrganization(organization); result = (formAddOrganization.ShowDialog() == System.Windows.Forms.DialogResult.OK); } if (result) LoadTree(); }