Пример #1
0
        private void button42_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.Filter          = "二维码文件 |*.jpg;*.png";
            ofd.ValidateNames   = true;
            ofd.CheckPathExists = true;
            ofd.CheckFileExists = true;
            if (ofd.ShowDialog() == DialogResult.OK)
            {
                string FileName = ofd.FileName;
                var    res      = weChatThread.Wx_QRCodeDecode(FileName);
                txt_syslog.Text = res.ConvertToString();
            }
        }