Beispiel #1
0
        private void frmParamProp_Load(object sender, EventArgs e)
        {
            if (this.FChangeType == ChangeType.PropGrid)
            {
                this.SetValue();
            }
            this.cboDataSetList.Items.Clear();
            IEnumerator enumerator = this.solution.DataSetList.GetEnumerator();

            while (enumerator.MoveNext())
            {
                SnDataSet current = (SnDataSet)enumerator.Current;
                this.cboDataSetList.Items.Add(current.DataSetID + "-" + current.DataSetName);
            }
            this.cboDataSetList.Items.Add("所有数据集");
            if (this._dataSetName == null)
            {
                this.cboDataSetList.SelectedIndex = 0;
            }
            else
            {
                this.cboDataSetList.SelectedIndex = this.cboDataSetList.Items.IndexOf(this._dataSetName);
            }
            RefreshInfo();
        }
Beispiel #2
0
 private void RefreshInfo()
 {
     if (cboDataSetList.SelectedIndex >= 0 && cboDataSetList.SelectedIndex < this.solution.DataSetList.Count)
     {
         this.curDataSet = (SnDataSet)this.solution.DataSetList[this.cboDataSetList.SelectedIndex];
     }
     else
     {
         this.curDataSet = new SnDataSet();
     }
     this.txtParamName.Text = this._paramName;
     this.txtFunction.Text  = this._function;
 }
Beispiel #3
0
        public object Clone()
        {
            SnDataSet set = new SnDataSet();

            set.reportPath    = this.reportPath;
            set.dataSetID     = this.dataSetID;
            set.dataSetName   = this.dataSetName;
            set.dataSetType   = this.dataSetType;
            set.DataType      = this.DataType;
            set.sqlExpression = this.sqlExpression;
            FieldsCollections   collections2 = (FieldsCollections)this.fieldsList.Clone();
            SQLParamCollections collections3 = (SQLParamCollections)this.paramList.Clone();

            set.fieldsList = collections2;
            set.paramList  = collections3;
            return(set);
        }