private void showDetaildOfChild_Click(object sender, RoutedEventArgs e) { try { if (bl.searchChild(idBox.Text) == null) { MessageBox.Show("The child still does not exist in the system"); } else { childDetails cd = new childDetails(bl.searchChild(idBox.Text)); cd.Show(); } } catch (Exception r) { MessageBox.Show(r.Message); } }
private void showDetaildOfChild_Click(object sender, RoutedEventArgs e) { try { BE.Child c = bl.searchChild(idBox.Text); contract = bl.searchContract(c.ContractNum); if (contract != null) { showContractDetails showcontractDetails = new showContractDetails(contract); showcontractDetails.Show(); } } catch (Exception r) { MessageBox.Show(r.Message); } }