| | |
| | | } |
| | | } |
| | | |
| | | public List<string> groups { get; private set; } |
| | | |
| | | public bool ValidateProductName(object value, out string msg) |
| | | { |
| | | msg = null; |
| | |
| | | if (SelectedProduct != null) |
| | | { |
| | | parameters = ProductManager.GetParametersByProductName<ObservableCollection<ParameterData>>(SelectedProduct.Name); |
| | | |
| | | } |
| | | parameters = parameters ?? new ObservableCollection<ParameterData>(); |
| | | Parameters = parameters; |
| | | groups = Parameters.Where(p => !string.IsNullOrEmpty(p.PGroup)).Select(p => p.PGroup).Distinct().ToList(); |
| | | } |
| | | |
| | | public void SaveOrUpdateData(ProductData data) |