public IAction Create(List <string> arguments) { IAction result = null; if (arguments != null && arguments.Count >= 1) { result = new NewCaseAction() { Case = arguments[0] }; } return(result); }
private void Add_to_list(object sender, RoutedEventArgs e) { ComboBoxItem typeItem = (ComboBoxItem)newCaseCombobox.SelectedItem; newCase = new NewCaseAction() { Args = new NewCaseArgs() { type = typeItem.Content.ToString() } }; if (Global.action == null) { Global.action = new BindingList <Action>(); } Global.action.Add(newCase); }