private void btnSet_Click(object sender, EventArgs e) { NestQueryParameter parameter = new NestQueryParameter(); #region strQueryColumns string strQueryColumns = string.Empty; foreach (var item in lstQueryFileds.CheckedItems) { var dr = item as DataRowView; if (dr != null) { strQueryColumns = strQueryColumns + dr.Row["Name"] + ","; } } strQueryColumns = strQueryColumns.TrimEnd(','); #endregion parameter.QueryColumns = strQueryColumns; parameter.CodeGenType = CodeGenType.WinFromNestQuery; FrmControlSetting frmSetting = new FrmControlSetting(parameter); if (frmSetting.ShowDialog() == DialogResult.OK) { QueryDataTable = frmSetting.QueryDataTable; this.DialogResult = DialogResult.OK; } }
/// <summary>界面生成 /// /// </summary> /// <param name="sender">sender</param> /// <param name="e">e</param> private void btnUIGen_Click(object sender, EventArgs e) { bool blnCheck = CheckInput(); if (!blnCheck) { return; } m_baseParameter = GetBaseParameter(); FrmControlSetting frmEditSetting = new FrmControlSetting(m_baseParameter); frmEditSetting.ShowDialog(); }