public bool ReadLicense(string licPath)
        {
            //加密模块开始 
            if (!File.Exists(licPath))
                MessageBox.Show("未注册,系统将退出,请与软件供应商联系!");
            if (!File.Exists(licPath))
            { form.ShowDialog(); return false; }

            //加密模块检查序列号 
            LincenseString lsH = new LincenseString();
            StreamReader reader = new StreamReader(licPath);
            lsH.machineNum = reader.ReadLine();//1
            lsH.regLicense = reader.ReadLine();//2
            lsH.expTimes = reader.ReadLine();//3
            lsH.expireDate = reader.ReadLine();//4
            lsH.regDateFile = reader.ReadLine();//5
            lsH.regEmail = reader.ReadLine();//6
            lsH.regDate = reader.ReadLine();//7
            lsH.licDate = reader.ReadLine();//8
            lsH.licMachine = reader.ReadLine();//9
            reader.Close();
            ls.machineNum = lc.Decrypt(lsH.machineNum, lc.keyStr);//= reader.ReadLine();//1
            ls.regLicense = lc.Decrypt(lsH.regLicense, lc.keyStr);// = reader.ReadLine();//2
            ls.expTimes = lc.Decrypt(lsH.expTimes, lc.keyStr);// = reader.ReadLine();//3
            ls.expireDate = lc.Decrypt(lsH.expireDate, lc.keyStr); //= reader.ReadLine();//4
            ls.regDateFile = lc.Decrypt(lsH.regDateFile, lc.keyStr);// = reader.ReadLine();//5
            ls.regEmail = lc.Decrypt(lsH.regEmail, lc.keyStr); //= reader.ReadLine();//6
            ls.regDate = lc.Decrypt(lsH.regDate, lc.keyStr);// = reader.ReadLine();//7
            ls.licDate = lc.Decrypt(lsH.licDate, lc.keyStr);//= reader.ReadLine();//8
            ls.licMachine = lc.Decrypt(lsH.licMachine, lc.keyStr);// = reader.ReadLine();//9

            return true;
        }
 public LicenseReadLib(LincenseString ls, LicenseCheck lc)
 {
     this.ls = ls;
     this.lc = lc;
 }