/// <summary> /// Removes the currently selected product, after the question. /// </summary> private void RemoveCurrent() { if (MessageBox.Show(localizator.RemoveProductText(), localizator.RemoveProductCaption(), MessageBoxButton.YesNoCancel, MessageBoxImage.Warning) == MessageBoxResult.Yes) { Products.Remove(Product); } }