예제 #1
0
        public Main()
        {
            InitializeComponent();
            NodeMediator   nMediator       = new NodeMediator();
            NodeFactory    nFactory        = NodeFactory.Instance;
            CircuitBuilder nCircuitBuilder = new CircuitBuilder(nMediator, nFactory);

            controller = new CircuitController(nMediator, nCircuitBuilder);
        }
예제 #2
0
 public CircuitController(NodeMediator mediator, CircuitBuilder circuit)
 {
     _NodeMediator   = mediator;
     _CircuitBuilder = circuit;
 }
예제 #3
0
 public CircuitBuilder(NodeMediator mediator, NodeFactory factory)
 {
     _NodeMediator = mediator;
     _NodeFactory  = factory;
     StringList    = new ObservableCollection <string>();
 }