/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
public Pin(Gate gate, bool input, int length) { this.owner = gate; this.input = input; this.length = length; }
public GateOutput(Gate gate, SideType side) : base(gate, side) { }
public GateConnection(Gate gate, SideType side) { Gate = gate; Side = side; }