コード例 #1
0
 private void switchLed1_MouseUp(object sender, MouseEventArgs e)
 {
     //if (e.Button == MouseButtons.Left)
     //{
     Iocomp.Instrumentation.Standard.SwitchLed Led = sender as Iocomp.Instrumentation.Standard.SwitchLed;
     Led.Value.AsBoolean = false;
     //}
     return;
 }
コード例 #2
0
        private void switchLed1_MouseDown(object sender, MouseEventArgs e)
        {
            //if (e.Button == MouseButtons.Left)
            //{
            int Tag;

            Iocomp.Instrumentation.Standard.SwitchLed Led = sender as Iocomp.Instrumentation.Standard.SwitchLed;
            Led.Value.AsBoolean = true;

            Tag = Convert.ToInt32(Led.Tag.ToString());

            PositionRead(Tag);
            //}
            return;
        }