//Delete selected order private void DeleteOrder() { MessageBoxResult messageBoxResult = System.Windows.MessageBox.Show("Are you sure you want to delete this order?", "Delete Confirmation", System.Windows.MessageBoxButton.YesNo); if (messageBoxResult == MessageBoxResult.Yes) { viewModel.DeleteOrder(); } }