Exemple #1
0
 /// <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("请选择模版文件!");
     }
 }
Exemple #2
0
 /// <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("请选择模版文件!");
     }
 }