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

Reset() public method

Allows you to reset the evaluation period.
This may be useful if a customer needs an extension or if somehow they invalidate their evaluation data by attempting to fiddle
public Reset ( ) : void
return void
        public void Reset()
        {
            if (_baseKey != null)
            {
                string name = _baseKey.Name;
                int i = name.IndexOf("\\") + 1;
                name = name.Substring(i);
                _baseKey.Close();
                _baseKey = null;
                try
                {
                    _rootKey.DeleteSubKeyTree(name);
                }
                catch { } // ignore possible failures
            }
            _usageCount = 0;
            _firstUseDate = DateTime.UtcNow;
            _lastUseDate = _firstUseDate;
            _invalid = false;
        }