예제 #1
0
 public Command(CommandType type, Element element, ElementGenerator target, int id)
 {
     Type             = type;
     Element          = element;
     ElementGenerator = target;
     ID = id;
 }
예제 #2
0
 private void AddGenerator(ElementGenerator generator)
 {
     m_generators.Insert(0, generator);
     if (m_generators.Count > 1)
     {
         m_generators[1].Parent = generator;
     }
 }
예제 #3
0
 public override string ToString()
 {
     return(Invariant($"{Type,-11} {Element} {ElementGenerator.GetType().Name} {ID}"));
 }
예제 #4
0
 public void Add(CommandType type, Element element, ElementGenerator target, int id = 0)
 {
     Add(new Command(type, element, target, id));
 }