Example #1
0
        public int Search(XS_chapterType collectionItem_in)
        {
            for (int i = 0; i < this.cols_.Count; i++)
            {
                if (
                    (
                                                #if NET_1_1
                        ((XS_chapterType)this.cols_[i])
                                                #else
                        this.cols_[i]
                                                #endif
                        .Title.Equals(
                            collectionItem_in.Title,
                            StringComparison.CurrentCulture
                            )
                    )

                    )
                {
                    return(i);
                }
            }

            return(-1);
        }
Example #2
0
 public void CopyFrom(XS_chapterType chapterType_in)
 {
     this.title_          = chapterType_in.title_;
     this.filename_       = chapterType_in.filename_;
     this.subtitle_       = chapterType_in.subtitle_;
     this.isintroduction_ = chapterType_in.isintroduction_;
     this.isappendix_     = chapterType_in.isappendix_;
     if (chapterType_in.items__ != null)
     {
         this.items__.CopyFrom(chapterType_in.items__);
     }
 }
Example #3
0
        public void CopyFrom(XS_chapterType chapterType_in)
        {
            int _index = -1;

            title_          = chapterType_in.title_;
            filename_       = chapterType_in.filename_;
            subtitle_       = chapterType_in.subtitle_;
            isintroduction_ = chapterType_in.isintroduction_;
            isappendix_     = chapterType_in.isappendix_;
            if (chapterType_in.items__ != null)
            {
                items__.CopyFrom(chapterType_in.items__);
            }
        }
Example #4
0
        public int Search(XS_chapterType collectionItem_in)
        {
            for (int i = 0; i < cols_.Count; i++)
            {
                if (
                    (
                                                #if NET_1_1
                        ((XS_chapterType)cols_[i])
                                                #else
                        cols_[i]
                                                #endif
                        .Title
                        ==
                        collectionItem_in.Title
                    )

                    )
                {
                    return(i);
                }
            }

            return(-1);
        }
Example #5
0
		public void CopyFrom(XS_chapterType chapterType_in) {
			this.title_ = chapterType_in.title_;
			this.filename_ = chapterType_in.filename_;
			this.subtitle_ = chapterType_in.subtitle_;
			this.isintroduction_ = chapterType_in.isintroduction_;
			this.isappendix_ = chapterType_in.isappendix_;
			if (chapterType_in.items__ != null) this.items__.CopyFrom(chapterType_in.items__);
		}
		public int Search(XS_chapterType collectionItem_in) {
			for (int i = 0; i < this.cols_.Count; i++) {
				if (
					(
						#if NET_1_1
						((XS_chapterType)this.cols_[i])
						#else
						this.cols_[i]
						#endif
							.Title.Equals(
								collectionItem_in.Title,
								StringComparison.CurrentCulture
							)
					)
					
				) {
					return i;
				}
			}

			return -1;
		}
Example #7
0
		public void CopyFrom(XS_chapterType chapterType_in) {
			int _index = -1;

			title_ = chapterType_in.title_;
			filename_ = chapterType_in.filename_;
			subtitle_ = chapterType_in.subtitle_;
			isintroduction_ = chapterType_in.isintroduction_;
			isappendix_ = chapterType_in.isappendix_;
			if (chapterType_in.items__ != null) items__.CopyFrom(chapterType_in.items__);
		}
		public int Search(XS_chapterType collectionItem_in) {
			for (int i = 0; i < cols_.Count; i++) {
				if (
					(
						#if NET_1_1
						((XS_chapterType)cols_[i])
						#else
						cols_[i]
						#endif
							.Title
						==
						collectionItem_in.Title
					)
					
				) {
					return i;
				}
			}

			return -1;
		}