Пример #1
0
        private void comboBox1_SelectedValueChanged(object sender, EventArgs e)
        {
            listBox1.Items.Clear();
            string str    = comboBox1.Text;
            char   myChar = str[3];
            string result = System.Text.RegularExpressions.Regex.Replace(str, @"[^0-9]+", "");
            string tSt;

            tSt = str.Substring(str.Length - 2, 1);
            string[] sArray1 = result.Split(new char[10] {
                '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'
            });
            string[] after = result.Split(new char[] { ' ' });
            string   str1  = result.Substring(0, 1);
            string   piece = result.Substring(0);
            string   qw    = Convert.ToString(result);

            char[]  adv = qw.ToArray();
            int     vc  = adv[0];
            Shpread ad  = new Shpread();

            ad.InitinalGdal();
            ad.GetShpLayer(av);
            ad.GetFeilds();
            List <string> FeildStringList = null;

            ad.GetFeildContent(Convert.ToInt32(str1), out FeildStringList);
            for (int i = 0; i < FeildStringList.Count; i++)
            {
                listBox1.Items.Add(FeildStringList[i]);
            }
        }