private void RemoveToastWithKey(object key) { _vim.VimBuffers .Select(x => x.TextView) .OfType <IWpfTextView>() .ForEach(x => _toastNotificationServiceProvider.GetToastNoficationService(x).Remove(key)); }
/// <summary> /// When any of the toast notifications are closed then close them all. No reason to make /// the developer dismiss it on every single display that is open /// </summary> private void OnToastNotificationClosed() { _vim.VimBuffers .Select(x => x.TextView) .OfType <IWpfTextView>() .ForEach(x => _toastNotificationServiceProvider.GetToastNoficationService(x).Remove(_toastKey)); }
private void OnToastNotificationClosed() { _vim.VimBuffers .Select(x => x.TextView) .OfType <IWpfTextView>() .ForEach(x => _toastNotificationServiceProvider.GetToastNoficationService(x).Remove(_toastKey)); _vimApplicationSettings.HaveNotifiedVimRcLoad = true; }
void IVimBufferCreationListener.VimBufferCreated(IVimBuffer vimBuffer) { var wpfTextView = vimBuffer.TextView as IWpfTextView; if (wpfTextView == null) { return; } var toastNotificationService = _toastNotificationServiceProvider.GetToastNoficationService(wpfTextView); new ConflictingKeyBindingMargin(_keyBindingService, _vimApplicationSettings, toastNotificationService); }