Beispiel #1
0
        private void LicForm2_Load(object sender, EventArgs e)
        {
            CryptoClass_   = new CryptoClass();
            compressedFile = new CompressedFile();

            CryptoClass_.loadStaticParam();
            ThisPCLic = CryptoClass_.Char_Mix2(CryptoClass.MotherBoardID_, CryptoClass.ProcessorID_, CryptoClass.Volumeserialnumber_, CryptoClass.ProgramID_, CryptoClass.ProgramVersion_);
        }
Beispiel #2
0
 public void GenerateQueryFile(string path)
 {
     using (StreamWriter sw = new StreamWriter(File.Open(path, FileMode.OpenOrCreate), System.Text.Encoding.GetEncoding(1251)))
     {
         sw.WriteLine(PatternID);
         sw.WriteLine(DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss"));
         sw.WriteLine(CryptoClass.CADProgramVersion_);
         sw.WriteLine(CryptoClass.ComputerName_);
         sw.WriteLine(CryptoClass.ProgramVersion_);
         sw.WriteLine(CryptoClass.ProgramID_);
         sw.WriteLine(CryptoClass.ProcessorID_);
         sw.WriteLine(CryptoClass.Volumeserialnumber_);
         sw.WriteLine(CryptoClass.MotherBoardID_);
     }
     if (CryptoClass_ == null)
     {
         CryptoClass_ = new CryptoClass();
     }
     if (compressedFile == null)
     {
         compressedFile = new CompressedFile();
     }
     compressedFile.AddCompressedFile(path, true);
 }