예제 #1
0
 private void BindComboBox()
 {
     dt = dal.GetList("Remark='" + this.sqlType.ToString().ToLower() + "'").Tables[0];
     if (dt.Rows.Count > 0)
     {
         cboServer.DisplayMember = "IP";
         cboServer.ValueMember   = "IP";
         cboServer.DataSource    = dt;
     }
 }
예제 #2
0
 /// <summary>绑定
 /// 绑定
 /// </summary>
 private void BindComboBox()
 {
     m_dt = m_dalConn.GetList("Remark='" + this.dbType + "'").Tables[0];
     if (m_dt.Rows.Count > 0)
     {
         cboServer.DisplayMember = @"IP";
         cboServer.ValueMember   = @"IP";
         cboServer.DataSource    = m_dt;
     }
 }