コード例 #1
0
        protected DialogResult ShowForm(QueryOptionsForm optionsForm)
        {
            FieldsToForm(optionsForm);

            DialogResult res = optionsForm.ShowDialog();

            if (res == DialogResult.OK)
            {
                FormToFields(optionsForm);
            }
            return(res);
        }
コード例 #2
0
 protected void FieldsToForm(QueryOptionsForm f)
 {
     f.txtBatchSeparator.Text    = this.BatchSeparator;
     f.txtExecutionTimeout.Value = this.ExecutionTimeout;
     f.txtRowcount.Value         = this.RowCount;
 }
コード例 #3
0
 protected void FormToFields(QueryOptionsForm f)
 {
     this.BatchSeparator   = f.txtBatchSeparator.Text;
     this.ExecutionTimeout = (int)(f.txtExecutionTimeout.Value);
     this.RowCount         = (int)(f.txtRowcount.Value);
 }