Exemplo n.º 1
0
        void InitialDtlpProtocol()
        {
            if (m_bDtlpInitialized == true)
            {
                return;
            }

            if (this.GetDtlpSearchParam == null)
            {
                throw new Exception("GetDtlpSearchParamEventHandle not set");
            }

            GetDtlpSearchParamEventArgs e = new GetDtlpSearchParamEventArgs();

            this.GetDtlpSearchParam(this, e);


            // 初始化DTLP协议相关参数
            this.dtlpResDirControl1.channelarray = e.DtlpChannels;
            dtlpResDirControl1.Channel           = e.DtlpChannel;

            /*
             * dtlpResDirControl1.procItemSelected = new Delegate_ItemSelected(
             *  this.DtlpItemSelected);
             * dtlpResDirControl1.procItemText = new Delegate_ItemText(
             *  this.DtlpItemText);
             * */
            dtlpResDirControl1.FillSub(null);

            // 展开
            if (this.textBox_dtlpRecPath.Text != "")
            {
                string strSavePath = this.textBox_dtlpRecPath.Text;

                this.dtlpResDirControl1.SelectedPath1 = this.textBox_dtlpRecPath.Text;

                this.textBox_dtlpRecPath.Text = strSavePath;
            }

            m_bDtlpInitialized = true;
        }
Exemplo n.º 2
0
        void InitialDtlpProtocol()
        {
            if (m_bDtlpInitialized == true)
                return;

            if (this.GetDtlpSearchParam == null)
            {
                throw new Exception("GetDtlpSearchParamEventHandle not set");
            }

            GetDtlpSearchParamEventArgs e = new GetDtlpSearchParamEventArgs();
            this.GetDtlpSearchParam(this, e);


            // 初始化DTLP协议相关参数
            this.dtlpResDirControl1.channelarray = e.DtlpChannels;
            dtlpResDirControl1.Channel = e.DtlpChannel;

            /*
            dtlpResDirControl1.procItemSelected = new Delegate_ItemSelected(
                this.DtlpItemSelected);
            dtlpResDirControl1.procItemText = new Delegate_ItemText(
                this.DtlpItemText);
             * */
            dtlpResDirControl1.FillSub(null);

            // 展开
            if (this.textBox_dtlpRecPath.Text != "")
            {
                string strSavePath = this.textBox_dtlpRecPath.Text;

                this.dtlpResDirControl1.SelectedPath1 = this.textBox_dtlpRecPath.Text;

                this.textBox_dtlpRecPath.Text = strSavePath;
            }

            m_bDtlpInitialized = true;
        }
Exemplo n.º 3
0
        void dlg_GetDtlpSearchParam(object sender, GetDtlpSearchParamEventArgs e)
        {
            DtlpSearchForm dtlp_searchform = this.GetDtlpSearchForm();

            e.DtlpChannels = dtlp_searchform.DtlpChannels;
            e.DtlpChannel = dtlp_searchform.DtlpChannel;
        }