Exemplo n.º 1
0
        private void frmhzc_Load(object sender, EventArgs e)
        {
            string path = Application.StartupPath + "\\cthzc.bin";
            string hzc  = AShelp.LoadTXT(path);

            if (hzc == "")
            {
                MessageBox.Show("文件不存在,请联系客服");
                return;
            }
            string[] strh = Regex.Split(hzc, "\r\n", RegexOptions.IgnoreCase);
            foreach (string s in strh)
            {
                checkedListBox1.Items.Add(s);
            }
        }