Ejemplo n.º 1
0
        private void lbButton1_ButtonChangeState(object sender, LBSoft.IndustrialCtrls.Buttons.LBButtonEventArgs e)
        {
            butun_butonlar_state_normal();


            if (lbButton1.State == LBSoft.IndustrialCtrls.Buttons.LBButton.ButtonState.Normal)
            {
                lbButton1.State = LBSoft.IndustrialCtrls.Buttons.LBButton.ButtonState.Pressed;

                if (serialPort1.IsOpen)
                {
                    serialPort1.WriteLine(":func 'volt:dc'");
                }
            }

            aktifrange();
            domainUpDown3.Enabled = true;
            domainUpDown3.Items.Clear();
            string[] gecici = { "4", "5", "6", "7", "8" };
            domainUpDown3.Items.AddRange(gecici);
            domainUpDown3.Text = Properties.Settings.Default.dc1.ToString();
            led2.Active        = Convert.ToBoolean(Properties.Settings.Default.dc2);
            whichRange         = Convert.ToInt16(Properties.Settings.Default.dc3);
            SetRange();
            SetFilter();
            SetDisplayDigit();
        }
Ejemplo n.º 2
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;
        }
Ejemplo n.º 3
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;
     }
 }
Ejemplo n.º 4
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;
        }
Ejemplo n.º 5
0
        private void lbButton7_ButtonChangeState(object sender, LBSoft.IndustrialCtrls.Buttons.LBButtonEventArgs e)
        {
            butun_butonlar_state_normal();
            if (lbButton7.State == LBSoft.IndustrialCtrls.Buttons.LBButton.ButtonState.Normal)
            {
                lbButton7.State = LBSoft.IndustrialCtrls.Buttons.LBButton.ButtonState.Pressed;
                if (serialPort1.IsOpen)
                {
                    serialPort1.WriteLine("func 'freq'");
                }
            }

            aktifrange();
            domainUpDown3.Enabled = false;
            domainUpDown3.Text    = Properties.Settings.Default.fre1.ToString();
            led2.Active           = Convert.ToBoolean(Properties.Settings.Default.fre2);
            whichRange            = Convert.ToInt16(Properties.Settings.Default.fre3);
            SetRange();
            SetFilter();
            SetDisplayDigit();
        }