internal ConflictingKeyBindingMargin(IKeyBindingService service, IVimApplicationSettings vimApplicationSettings, IToastNotificationService toastNotificationService) { _keyBindingService = service; _vimApplicationSettings = vimApplicationSettings; _control = new ConflictingKeyBindingMarginControl(); _control.ConfigureClick += OnConfigureClick; _keyBindingService.ConflictingKeyBindingStateChanged += OnStateChanged; _toastNotificationService = toastNotificationService; _toastNotificationService.TextView.Closed += OnTextViewClosed; OnStateChanged(this, EventArgs.Empty); }
internal ConflictingKeyBindingMargin(IKeyBindingService service, IVimApplicationSettings vimApplicationSettings, IToastNotificationService toastNotificationService) { _keyBindingService = service; _vimApplicationSettings = vimApplicationSettings; _control = new ConflictingKeyBindingMarginControl(); _control.ConfigureClick += OnConfigureClick; _keyBindingService.ConflictingKeyBindingStateChanged += OnStateChanged; _toastNotificationService = toastNotificationService; _toastNotificationService.TextView.Closed += OnTextViewClosed; OnStateChanged(this, EventArgs.Empty); }