示例#1
0
 private void button1_Click(object sender, EventArgs e)
 {
     listBox1.Items.Clear();
     sqlServers = sqlApp.ListAvailableSQLServers();
     if(sqlServers != null)
     {
         for(int i=0;i<sqlServers.Count;i++)
         {
             object srv = sqlServers.Item( i + 1);
             //添加到服务器的列表中去
             this.listBox1.Items.Add(srv.ToString());
         }
     }
 }
示例#2
0
 public OpenDatabase(ref DataSet DsIn)
 {
     InitializeComponent();
     sqlServers = sqlApp.ListAvailableSQLServers();
     ds = DsIn;
 }
示例#3
0
 public OpenDatabase()
 {
     InitializeComponent();
     sqlServers = sqlApp.ListAvailableSQLServers();
 }