public QrCodeSampleApp()
        {
            InitializeComponent();
            //双缓存
            base.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true);
            base.SetStyle(ControlStyles.ResizeRedraw | ControlStyles.Selectable, true);

            IniHelper _iniHelper = new IniHelper();
            _iniHelper.ls_iniFileFullPath = Application.StartupPath + "\\" + "USER.yc";
            string _key = _iniHelper.Read("USER", "key");

            _QrEncode = new QrEncode(_key);
        }
Exemple #2
0
        public QrCodeSampleApp()
        {
            InitializeComponent();
            //双缓存
            base.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true);
            base.SetStyle(ControlStyles.ResizeRedraw | ControlStyles.Selectable, true);


            IniHelper _iniHelper = new IniHelper();

            _iniHelper.ls_iniFileFullPath = Application.StartupPath + "\\" + "USER.yc";
            string _key = _iniHelper.Read("USER", "key");

            _QrEncode = new QrEncode(_key);
        }