Beispiel #1
0
		// 初始化本对象
		// 从外部给的lChannel,在使用完后一定要设置为-1,否则会导致多次Destroy()
		public int Initial(DtlpChannelArray channels,
			string strDBPath,
			string strStartNumber,
			string strEndNumber)
		{
            Debug.Assert(channels != null, "channels参数不能为null");

            this.Channels = channels;
			this.channel = this.Channels.CreateChannel(0);

			// Debug.Assert(channel != null, "channel参数不能为null");


			/*
			pConnect->m_strDefUserName = strDefUserName;
			pConnect->m_strDefPassword = strDefPassword;
			*/

			Debug.Assert(strStartNumber != "",
				"strStartNumber参数不能为空");
			m_strStartNumber = strStartNumber;

			Debug.Assert(strEndNumber != "",
				"strEndNumber参数不能为空");
			m_strEndNumber = strEndNumber;

			Debug.Assert(strDBPath != "",
				"strDBPath参数不能为空");
			m_strDBPath = strDBPath;			// 数据库路径

			return 0;
		}
Beispiel #2
0
        // 初始化本对象
        // 从外部给的lChannel,在使用完后一定要设置为-1,否则会导致多次Destroy()
        public int Initial(DtlpChannelArray channels,
                           string strDBPath,
                           string strStartNumber,
                           string strEndNumber)
        {
            Debug.Assert(channels != null, "channels参数不能为null");

            this.Channels = channels;
            this.channel  = this.Channels.CreateChannel(0);

            // Debug.Assert(channel != null, "channel参数不能为null");


            /*
             * pConnect->m_strDefUserName = strDefUserName;
             * pConnect->m_strDefPassword = strDefPassword;
             */

            Debug.Assert(strStartNumber != "",
                         "strStartNumber参数不能为空");
            m_strStartNumber = strStartNumber;

            Debug.Assert(strEndNumber != "",
                         "strEndNumber参数不能为空");
            m_strEndNumber = strEndNumber;

            Debug.Assert(strDBPath != "",
                         "strDBPath参数不能为空");
            m_strDBPath = strDBPath;                                    // 数据库路径

            return(0);
        }
Beispiel #3
0
        public int Initial(DtlpChannelArray channels,
                           DtlpChannel channel)
        {
            this.dtlpResDirControl1.channelarray = channels;
            this.dtlpResDirControl1.Channel      = channel;

            return(0);
        }