private void HotKeyIpRegister(Keys keys, KeyModifiers keyModifiers, KeyModifiers secondKeyModifiers = KeyModifiers.None) { _ipHotKey = new HotKey(keys, keyModifiers, secondKeyModifiers); _ipHotKey.Pressed += (o, e) => { var inn = DataGenerator.InnIp; Clipboard.SetText(inn); if (NotificationIcon.ShowNotificationStrategy) { NotificationIcon.ShowBalloonTip(2, "Буфер обновлен", "Сгенерирован ИНН для ИП", ToolTipIcon.Info); } NotificationIcon.AddElementToDataArrayList(inn); e.Handled = true; }; _ipHotKey.Register(this); }