/// <summary>
        /// Deletes this instance.
        /// </summary>
        private void Delete()
        {
            var canceler = new DeletingConnectionEventArgs(ViewModel.Current.Configuration);

            Events.GetEvent <DeletingEvent>().Publish(canceler);
            if (!canceler.Cancel)
            {
                (ViewModel.Connections as ListCollectionView).Remove(ViewModel.Current);
                MonahrqConfiguration.Delete(ViewModel.Current.Configuration);
            }
            Events.GetEvent <DeletedEvent>().Publish(EventArgs.Empty);
        }
        private void PromptForDelete(DeletingConnectionEventArgs evnt)
        {
            var result = MessageBox.Show(
                Application.Current.MainWindow,
                string.Format(@"Delete ""{0}"" ?", evnt.Connection.Name),
                "Delete Connection?",
                MessageBoxButton.YesNo,
                MessageBoxImage.Question, MessageBoxResult.No);

            this.Logger.Debug($"User responded '{result}' to prompt \"Delete {evnt.Connection.Name}\"");

            evnt.Cancel = result == MessageBoxResult.No;
        }