private void btnSelect_Click(object sender, RoutedEventArgs e) { if (dtgOrganizationTypes.SelectedItem != null) { var OrganizationTypeDTO = dtgOrganizationTypes.SelectedItem as OrganizationTypeDTO; if (OrganizationTypeDTO != null) { OrganizationTypeSelectedArg arg = new OrganizationTypeSelectedArg(); arg.OrganizationTypeID = OrganizationTypeDTO.ID; if (OrganizationTypeSelected != null) { OrganizationTypeSelected(this, arg); } } } }
private void FrmOrganizationTypeSelect_OrganizationTypeSelected(object sender, OrganizationTypeSelectedArg e) { GetOrganizationType(e.OrganizationTypeID); MyProjectManager.GetMyProjectManager.CloseDialog(sender); }