示例#1
0
 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"]);
     }
 }
示例#3
0
        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);
        }
示例#4
0
文件: Pipe.cs 项目: TsankoBg/OOD2
        /// <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);
                }
            }
        }
示例#5
0
 public Page WaitReady()
 {
     InputA.WaitPresent();
     return(this);
 }
示例#6
0
 public Adapter_AToB(InputA inputA) => this.inputA = inputA;
示例#7
0
 private void SetupDetectAnyInputHigh()
 {
     InputA.ConnectTo(or.InputA);
     InputB.ConnectTo(or.InputB);
 }
示例#8
0
 private void SetupDetectBothInputHigh()
 {
     InputA.ConnectTo(and.InputA);
     InputB.ConnectTo(and.InputB);
     and.Output.ConnectTo(not.InputA);
 }