예제 #1
0
        public IAction Create(List <string> arguments)
        {
            IAction result = null;

            result = new UniqueNameAction();

            return(result);
        }
예제 #2
0
        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);
        }