private void deleteLocalItems() { if (LocalList.SelectedItems.Count == 0) { return; } if (MessageWindow.Show(this, AppLanguage.Get("LangMBDelete"), AppLanguage.Get("LangMBDeleteTitle"), MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.Yes) != MessageBoxResult.Yes) { return; } SmartItem[] items = LocalList.SelectedItems(); if (items == null) { return; } LocalHelper.Delete(items); }