protected DialogResult ShowForm(QueryOptionsForm optionsForm) { FieldsToForm(optionsForm); DialogResult res = optionsForm.ShowDialog(); if (res == DialogResult.OK) { FormToFields(optionsForm); } return(res); }
protected void FieldsToForm(QueryOptionsForm f) { f.txtBatchSeparator.Text = this.BatchSeparator; f.txtExecutionTimeout.Value = this.ExecutionTimeout; f.txtRowcount.Value = this.RowCount; }
protected void FormToFields(QueryOptionsForm f) { this.BatchSeparator = f.txtBatchSeparator.Text; this.ExecutionTimeout = (int)(f.txtExecutionTimeout.Value); this.RowCount = (int)(f.txtRowcount.Value); }