public void Delete() { var result = MessageBox.Show( string.Format("Are you sure you want to delete the topic {0}? This action cannot be undone.", Instance.Path), "Delete Queue", MessageBoxButton.YesNo, MessageBoxImage.Question); if (result == MessageBoxResult.Yes) { _manager.DeleteTopic(Instance.Path); } }