예제 #1
0
        public void CopyFrom(XS_tableType tableType_in)
        {
            int _index = -1;

            name_                = tableType_in.name_;
            friendlyname_        = tableType_in.friendlyname_;
            dbdescription_       = tableType_in.dbdescription_;
            extendeddescription_ = tableType_in.extendeddescription_;
            isvirtualtable_      = tableType_in.isvirtualtable_;
            isconfig_            = tableType_in.isconfig_;
            configname_          = tableType_in.configname_;
            configconfig_        = tableType_in.configconfig_;
            configdatatype_      = tableType_in.configdatatype_;
            if (tableType_in.tablefields__ != null)
            {
                tablefields__.CopyFrom(tableType_in.tablefields__);
            }
            if (tableType_in.tablesearches__ != null)
            {
                tablesearches__.CopyFrom(tableType_in.tablesearches__);
            }
            if (tableType_in.tableupdates__ != null)
            {
                tableupdates__.CopyFrom(tableType_in.tableupdates__);
            }
        }
예제 #2
0
        public int Search(XS_tableType collectionItem_in)
        {
            for (int i = 0; i < cols_.Count; i++)
            {
                if (
                    (
                                                #if NET_1_1
                        ((XS_tableType)cols_[i])
                                                #else
                        cols_[i]
                                                #endif
                        .Name.ToLower()
                        ==
                        collectionItem_in.Name.ToLower()
                    )

                    )
                {
                    return(i);
                }
            }

            return(-1);
        }
예제 #3
0
		public int Search(XS_tableType collectionItem_in) {
			for (int i = 0; i < cols_.Count; i++) {
				if (
					(
						#if NET_1_1
						((XS_tableType)cols_[i])
						#else
						cols_[i]
						#endif
							.Name.ToLower()
						==
						collectionItem_in.Name.ToLower()
					)
					
				) {
					return i;
				}
			}

			return -1;
		}