예제 #1
0
        private bool Is_Existing_User(OrganisationType OrganisationTobeAdded, OrganisationSchemeType OrganisationScheme)
        {
            bool RetVal;

            RetVal = false;

            foreach (OrganisationType Organisation in OrganisationScheme.Organisation)
            {
                if (Organisation.id == OrganisationTobeAdded.id)
                {
                    RetVal = true;
                    break;
                }
            }

            return RetVal;
        }
        public DataProviderSchemeType(string id, string agencyId, string version, string name, string description, string language, OrganisationType organisation)
        {
            this.id = id;
            this.agencyID = agencyId;
            this.version = version;

            if (!string.IsNullOrEmpty(name))
            {
                this.Name = new List<TextType>();
                this.Name.Add(new TextType(language, name));
            }

            if (!string.IsNullOrEmpty(description))
            {
                this.Description = new List<TextType>();
                this.Description.Add(new TextType(language, description));
            }

            if (organisation != null)
            {
                this.Organisation = new List<OrganisationType>();
                this.Organisation.Add(organisation);
            }
        }