private void clearLab1_Click(object sender, EventArgs e) { b.Clear(); InputA.Clear(); InputX.Clear(); Lab1N1V.Clear(); Lab1N2F.Clear(); Lab1N1S.Clear(); }
public override void Reconnect(ConnectionPoint[] connectionPoints) { if (Settings != null) { Output.Connect(connectionPoints, Settings["Output"]["Connections"]); InputA.Connect(connectionPoints, Settings["InputA"]["Connections"]); InputB.Connect(connectionPoints, Settings["InputB"]["Connections"]); } }
public void Execute_should_pass_input_to_command() { CommandA commandASpy = new CommandA(); var sut = new CommandRunner( new ITcxEditorCommand[] { commandASpy }); InputA input = new InputA(); sut.Execute(input); commandASpy.LastInput.ShouldBeSameAs(input); }
/// <summary> /// sets the safety limit to the given value /// </summary> /// <param name="limit"></param> public override void SetSafetyLimit(int limit) { this.SafetyLimit = limit; if (OutputA is Pipe) { Pipe temp = (Pipe)OutputA; if (temp.GetSafetyLimit() != limit) { OutputA.SetSafetyLimit(limit); } } if (InputA is Pipe) { Pipe temp = (Pipe)InputA; if (temp.GetSafetyLimit() != limit) { InputA.SetSafetyLimit(limit); } } }
public Page WaitReady() { InputA.WaitPresent(); return(this); }
public Adapter_AToB(InputA inputA) => this.inputA = inputA;
private void SetupDetectAnyInputHigh() { InputA.ConnectTo(or.InputA); InputB.ConnectTo(or.InputB); }
private void SetupDetectBothInputHigh() { InputA.ConnectTo(and.InputA); InputB.ConnectTo(and.InputB); and.Output.ConnectTo(not.InputA); }