private void ExecuteAddNew(object parameter) { ProductNames.Add(new ModelBaseVM() { Name = string.Empty, IsEnabled = true, IsChecked = false }); ScrollToIndex = ProductNames.Count() - 1; CheckValidation(); }
public void AddName(int id, string name) { ProductNames.Add(id, name); }