/// <summary> /// 选择表名 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnSerach_Click(object sender, EventArgs e) { if (listPhysicalDiagramInfo != null) { Form serachForm = new SerachForm(listPhysicalDiagramInfo); serachForm.ShowDialog(); List <string> list = (List <string>)serachForm.Tag; if (list != null) { StringBuilder sb = new StringBuilder(); foreach (string s in list) { sb.Append(s + ","); } textTableList.Text = sb.ToString().Substring(0, sb.ToString().Length - 1); } serachForm.Dispose(); } else { MessageBox.Show("请选择模版文件!"); } }
/// <summary> /// 选择表名 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnSerach_Click(object sender, EventArgs e) { if (listPhysicalDiagramInfo != null) { Form serachForm = new SerachForm(listPhysicalDiagramInfo); serachForm.ShowDialog(); List<string> list = (List<string>)serachForm.Tag; if (list != null) { StringBuilder sb = new StringBuilder(); foreach (string s in list) { sb.Append(s + ","); } textTableList.Text = sb.ToString().Substring(0, sb.ToString().Length - 1); } serachForm.Dispose(); } else { MessageBox.Show("请选择模版文件!"); } }