Example #1
0
        public SimpleUndoPair RemoveUnknownParameter(UnknownParameter p)
        {
            int index = m_parameters.IndexOf(p);

            return(new SimpleUndoPair
            {
                Redo = () => { m_parameters.Remove(p); },
                Undo = () => { m_parameters.Insert(index, p); },
            });
        }
Example #2
0
 public SimpleUndoPair RemoveUnknownParameter(UnknownParameter p)
 {
     throw new NotImplementedException(); //TODO: Can this happen?
 }
Example #3
0
 public SimpleUndoPair RemoveUnknownParameter(UnknownParameter p)
 {
     throw new NotSupportedException("Editing of unknown editables is not supported. Please recover the definition of the node type or delete the node");
 }