private void AddNewEnumeration_Click(object sender, RoutedEventArgs e) { if (CommandVM.SelectedCommand != null) { var enumList = new EnumerationDefinition() { EnumerationName = txtEnumName.Text, Items = new ObservableCollection <EnumerationItem>() }; CommandVM.SelectedCommand.EnumerationList.Add(enumList); } }
private void AddNewEnumeration_Click(object sender, RoutedEventArgs e) { if (CommandVM.SelectedCommand != null) { var enumList = new EnumerationDefinition() { EnumerationName = txtEnumName.Text, Items = new ObservableCollection<EnumerationItem>() }; CommandVM.SelectedCommand.EnumerationList.Add(enumList); } }