public void DeleteConfirmOrderItems() { if (GetConfirmOrderListItemModel == null) { DI.UI.ShowMessage(new MessageBoxDialogViewModel { Title = "Message", Message = "Please choose one or more some product to the order list!" }); return; } try { if (GetConfirmOrderListItemModel != null) { if (System.Windows.MessageBox.Show($"Apakah Anda yakin ingin menghapus {GetConfirmOrderListItemModel.ProductName} dari Daftar ?", "Konfirmasi", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes) { ConfirmOrderListItemsCollection.Remove(GetConfirmOrderListItemModel); } } } catch (Exception Ex) { CoreDI.Logger.Log(Ex.Message); System.Windows.MessageBox.Show(Ex.Message); } }