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

                    )
                {
                    return(i);
                }
            }

            return(-1);
        }
示例#2
0
 public void CopyFrom(XS_itemType itemType_in)
 {
     this.title_          = itemType_in.title_;
     this.subtitle_       = itemType_in.subtitle_;
     this.isintroduction_ = itemType_in.isintroduction_;
     this.issummary_      = itemType_in.issummary_;
     if (itemType_in.attachments__ != null)
     {
         this.attachments__.CopyFrom(itemType_in.attachments__);
     }
 }
示例#3
0
        public void CopyFrom(XS_itemType itemType_in)
        {
            int _index = -1;

            title_          = itemType_in.title_;
            subtitle_       = itemType_in.subtitle_;
            isintroduction_ = itemType_in.isintroduction_;
            issummary_      = itemType_in.issummary_;
            if (itemType_in.attachments__ != null)
            {
                attachments__.CopyFrom(itemType_in.attachments__);
            }
        }
示例#4
0
        public int Search(XS_itemType collectionItem_in)
        {
            for (int i = 0; i < cols_.Count; i++)
            {
                if (
                    (
                                                #if NET_1_1
                        ((XS_itemType)cols_[i])
                                                #else
                        cols_[i]
                                                #endif
                        .Title
                        ==
                        collectionItem_in.Title
                    )

                    )
                {
                    return(i);
                }
            }

            return(-1);
        }
示例#5
0
		public int Search(XS_itemType collectionItem_in) {
			for (int i = 0; i < cols_.Count; i++) {
				if (
					(
						#if NET_1_1
						((XS_itemType)cols_[i])
						#else
						cols_[i]
						#endif
							.Title
						==
						collectionItem_in.Title
					)
					
				) {
					return i;
				}
			}

			return -1;
		}
示例#6
0
		public void CopyFrom(XS_itemType itemType_in) {
			int _index = -1;

			title_ = itemType_in.title_;
			subtitle_ = itemType_in.subtitle_;
			isintroduction_ = itemType_in.isintroduction_;
			issummary_ = itemType_in.issummary_;
			if (itemType_in.attachments__ != null) attachments__.CopyFrom(itemType_in.attachments__);
		}
示例#7
0
		public void CopyFrom(XS_itemType itemType_in) {
			this.title_ = itemType_in.title_;
			this.subtitle_ = itemType_in.subtitle_;
			this.isintroduction_ = itemType_in.isintroduction_;
			this.issummary_ = itemType_in.issummary_;
			if (itemType_in.attachments__ != null) this.attachments__.CopyFrom(itemType_in.attachments__);
		}
示例#8
0
		public int Search(XS_itemType collectionItem_in) {
			for (int i = 0; i < this.cols_.Count; i++) {
				if (
					(
						#if NET_1_1
						((XS_itemType)this.cols_[i])
						#else
						this.cols_[i]
						#endif
							.Title.Equals(
								collectionItem_in.Title,
								StringComparison.CurrentCulture
							)
					)
					
				) {
					return i;
				}
			}

			return -1;
		}