ComponentFactory.Krypton.Ribbon.EvaluationMonitor.GetUsageData C# (CSharp) Method

GetUsageData() private method

Get the number of times the product has been used (and increment)
private GetUsageData ( ) : void
return void
        private void GetUsageData()
        {
            // get the previous usage count
            //
            RegistryKey usageKey = _baseKey.OpenSubKey(_usageKeyName, true);
            string countString = Decrypt((byte[])usageKey.GetValue(null));
            _usageCount = int.Parse(countString);

            // increment the usage count
            //
            _usageCount++;
            usageKey.SetValue(null, Encrypt(_usageCount.ToString()));
            usageKey.Close();
        }