示例#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
文件: Pin.cs 项目: Thevinu/Thev
 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;
 }