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; }
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; }