protected override void OnLostFocus(EventArgs e) { base.OnLostFocus(e); if (newKeys.Count == 0) { foreach (Keys k in oldKeys) { downedKeys.Add(k); } UpdateKeyDisplay(); } else { KeysChanged?.Invoke(this, EventArgs.Empty); } }
private void ValidateInitalizeKeysNextPosition() { if (IsChangeSizeIndex) { lock (keys) { var headerSize = mmIndex.HeaderNextPosition; logger?.LogDebug("change header Size: {0} to {1} >>>", nextPosition, headerSize); foreach (var position in mmIndex.ReadRecordsPositions(nextPosition)) { string tagName = GetKey(position); keys[tagName] = position; // logger?.LogDebug(" Add key: {0} at {1}", tagName, keys[tagName]); nextPosition = position; } nextPosition = nextPosition > headerSize ? nextPosition : headerSize; logger?.LogInformation("Change key Count: {0} ", keys.Count); KeysChanged?.Invoke(this, Keys); } } }
private void OnKeysChanged() { KeysChanged?.Invoke(this, KeysChangedEventArgs.Default); }
private void OnKeysChanged() { KeysChanged?.Invoke(this, null); }