Example #1
0
        private void btnRepeat_ButtonChangeState(object sender, LBSoft.IndustrialCtrls.Buttons.LBButtonEventArgs e)
        {
            if (e.State != LBSoft.IndustrialCtrls.Buttons.LBButton.ButtonState.Normal)
                return;

            this.sdRepeat.Value = 0;
        }
Example #2
0
        private void btnRepeat_ButtonRepeatState(object sender, LBSoft.IndustrialCtrls.Buttons.LBButtonEventArgs e)
        {
            int v = this.sdRepeat.Value;
            v++;
            if (v > 9)
                v = 0;

            this.sdRepeat.Value = v;
        }
Example #3
0
        private void lbKnob1_KnobChangeValue(object sender, LBSoft.IndustrialCtrls.Knobs.LBKnobEventArgs e)
        {
            float fValue = lbKnob1.Value;
            string sValue = (fValue * 1000).ToString();

            lbAnalogMeter1.Value = fValue;
            lxLedControl1.Text = sValue;
            progBarPlus1.Value = (int)(fValue * 1000);
            progBarPlus2.Value = (int)(fValue * 1000);
        }
Example #4
0
		void OnKnobChangeValue(object sender, LBSoft.IndustrialCtrls.Knobs.LBKnobEventArgs e)
		{
			this.lbAnalogMeter1.Value = e.Value;
			this.lbAnalogMeter2.Value = e.Value;
            this.lbDigitalMeter1.Value = e.Value * 10;

            int v = (int)(e.Value / 10) - 1;
            if ( v < 0 ) 
                v = 0;
            if ( v > 9 )
                v = 9;
            this.lB7SegmentDisplay1.Value = v;
            this.lB7SegmentDisplay2.Value = v;
        }
Example #5
0
		void OnStopStateChanged(object sender, LBSoft.IndustrialCtrls.Buttons.LBButtonEventArgs e)
		{
			if ( e.State == LBSoft.IndustrialCtrls.Buttons.LBButton.ButtonState.Pressed )
			{
				this.lbLed1.State = LBSoft.IndustrialCtrls.Leds.LBLed.LedState.On;
				this.lbLed4.State = LBSoft.IndustrialCtrls.Leds.LBLed.LedState.Off;
			}
			else
			{
				this.lbLed1.State = LBSoft.IndustrialCtrls.Leds.LBLed.LedState.Off;
				this.lbLed4.State = LBSoft.IndustrialCtrls.Leds.LBLed.LedState.On;
			}
		}
Example #6
0
		void OnStartStateChanged(object sender, LBSoft.IndustrialCtrls.Buttons.LBButtonEventArgs e)
		{
			if ( e.State == LBSoft.IndustrialCtrls.Buttons.LBButton.ButtonState.Pressed )
				this.lbLed2.State = LBSoft.IndustrialCtrls.Leds.LBLed.LedState.On;
			else
				this.lbLed2.State = LBSoft.IndustrialCtrls.Leds.LBLed.LedState.Off;
		}