Ejemplo n.º 1
0
 private void RemoveToastWithKey(object key)
 {
     _vim.VimBuffers
     .Select(x => x.TextView)
     .OfType <IWpfTextView>()
     .ForEach(x => _toastNotificationServiceProvider.GetToastNoficationService(x).Remove(key));
 }
Ejemplo n.º 2
0
 /// <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;
 }
Ejemplo n.º 4
0
        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);
        }