Пример #1
0
 /// <summary>
 /// Adds a new Input Source to the circuit.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void buttonInputSource_Click(object sender, EventArgs e)
 {
     Debug.WriteLine("Input Source added to the circuit.");
     newGate = new InputSource(0, 0);
 }
Пример #2
0
 /// <summary>
 /// Adds a new Output Source to the circuit.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void buttonOutputLamp_Click(object sender, EventArgs e)
 {
     Debug.WriteLine("Output Lamp added to the circuit.");
     newGate = new OutputLamp(0, 0);
 }
Пример #3
0
 /// <summary>
 /// Adds a new OR Gate to the circuit.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void buttonOr_Click(object sender, EventArgs e)
 {
     Debug.WriteLine("Or Gate added the to the circuit.");
     newGate = new OrGate(0, 0);
 }
Пример #4
0
 /// <summary>
 /// Adds a new NOT Gate to the circuit.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void buttonNot_Click(object sender, EventArgs e)
 {
     Debug.WriteLine("Not Gate added to the circuit.");
     newGate = new NotGate(0, 0);
 }
Пример #5
0
 /// <summary>
 /// Adds a new AND Gate to the circuit
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void buttonAnd_Click(object sender, EventArgs e)
 {
     Debug.WriteLine("And Gate added to the ciruit.");
     newGate = new AndGate(0, 0);
 }
Пример #6
0
 /// <summary>
 /// Add a gate in the circuit to the list.
 /// </summary>
 /// <param name="gate">The gate to be added to the list</param>
 public void AddGate(Gate gate)
 {
     GateList.Add(gate);
 }
Пример #7
0
 public Pin(Gate gate, bool input, int length)
 {
     this.owner  = gate;
     this.input  = input;
     this.length = length;
 }
Пример #8
0
 public GateOutput(Gate gate, SideType side)
     : base(gate, side)
 {
 }
Пример #9
0
 public GateConnection(Gate gate, SideType side)
 {
     Gate = gate;
     Side = side;
 }