private void btnDeleteOrder_Click(object sender, RoutedEventArgs e) { var r = MessageBox .Show("You are about to delete Reservation Order permanently!!\nPlease note that this action cannot be undone!" , "Delete", MessageBoxButton.OKCancel); if (r == MessageBoxResult.OK) { _viewModel.DeleteOrder(); } }