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