예제 #1
0
        /// <summary>
        /// 输出类型数据绑定,从XML文件中获取
        /// </summary>
        public void ComBoxDataBind(string strVectorFile)
        {
            char[]        strVectorFileList = strVectorFile.ToCharArray();
            StringBuilder sSBuilder         = new StringBuilder(300);

            GdalAlgInterface.GetVectorFields(strVectorFileList, sSBuilder, 300);
            //MessageBox.Show("sSBuilder=" + sSBuilder);
            List <string> list = StringFormater.getListByStringSplit(sSBuilder.ToString());

            this.cbx_FormatType.DataSource = list;
        }