示例#1
0
 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);
     }
 }
示例#2
0
 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);
     }
 }