public IAction Create(List <string> arguments) { IAction result = null; result = new UniqueNameAction(); return(result); }
private void Add_to_list(object sender, RoutedEventArgs e) { ComboBoxItem selectedItem = (ComboBoxItem)uniquenameCombobox.SelectedItem; changetoUniqueName = new UniqueNameAction() { Args = new UniqueNameArgs() { option = selectedItem.Content.ToString() } }; if (Global.action == null) { Global.action = new BindingList <Action>(); } Global.action.Add(changetoUniqueName); }