Пример #1
0
 public GateComposite createNode(string type)
 {
     try
     {
         GateComposite node = _nodes[type];
         return(node.Clone());
     }
     catch (KeyNotFoundException e)
     {
         WrongInputException wie = new WrongInputException("wrong input", e);
         throw wie;
     }
 }
Пример #2
0
 public GateGraphic(GateComposite gate)
 {
     this.gate = gate;
     x         = 0;
     y         = 0;
 }
Пример #3
0
 public void RegisterNode(string name, GateComposite node)
 {
     _nodes.Add(name, node);
 }