private void SendValidationMailToOrganisation(IOrganisationService srvOrg, Organisation org) { if (org.ValidationState.LastIndexOf(OrganisationValidate.NoProgram) >= 0) { srvOrg.OrganisationValidateSendEmailByCategory(org, EmailCategory.ValidationNoProgram, ""); if (pbOrgValidate.Visible && pbOrgValidate.Maximum -1 < pbOrgValidate.Value) pbOrgValidate.Value++; } if (org.ValidationState.LastIndexOf(OrganisationValidate.NoQuestionForm) >= 0) { srvOrg.OrganisationValidateSendEmailByCategory(org, EmailCategory.ValidationNoQuestionForm, ""); if (pbOrgValidate.Visible && pbOrgValidate.Maximum - 1 < pbOrgValidate.Value) pbOrgValidate.Value++; } if (org.ValidationState.LastIndexOf(OrganisationValidate.NoQuestionFormRefresh) >= 0) { srvOrg.OrganisationValidateSendEmailByCategory(org, EmailCategory.ValidationNoQuestionFormRefresh, ""); if (pbOrgValidate.Visible && pbOrgValidate.Maximum - 1 < pbOrgValidate.Value) pbOrgValidate.Value++; } if (org.ValidationState.LastIndexOf(OrganisationValidate.NoOrgQuestionForm) >= 0) { srvOrg.OrganisationValidateSendEmailByCategory(org, EmailCategory.ValidationNoOrgQuestionForm, ""); if (pbOrgValidate.Visible && pbOrgValidate.Maximum - 1 < pbOrgValidate.Value) pbOrgValidate.Value++; } if (org.ValidationState.LastIndexOf(OrganisationValidate.NoOrgQuestionFormRefresh) >= 0) { srvOrg.OrganisationValidateSendEmailByCategory(org, EmailCategory.ValidationNoOrgQuestionFormRefresh, ""); if (pbOrgValidate.Visible && pbOrgValidate.Maximum - 1 < pbOrgValidate.Value) pbOrgValidate.Value++; } if (org.ValidationState.LastIndexOf(OrganisationValidate.NoBaseDatasRefresh) >= 0) { srvOrg.OrganisationValidateSendEmailByCategory(org, EmailCategory.ValidationNoBaseDatasRefresh, ""); if (pbOrgValidate.Visible && pbOrgValidate.Maximum - 1 < pbOrgValidate.Value) pbOrgValidate.Value++; } }