Closed Malexys closed 3 years ago
How can I put the "temp" definition to a textbox or label, whatever I did did not work. Can you help?
static void Event(object sender, KnxEventArgs args) { if (args.DestinationAddress.Equals(new KnxThreeLevelGroupAddress(1, 1, 16))) { decimal temp = (decimal)connection.FromDataPoint("9.001", args.State); textbox1.text=temp.tostring(); return; }
if (args.DestinationAddress.ToString() == "1/1/17") { int perc = (int)connection.FromDataPoint("5.001", args.State); Console.WriteLine($"New Event: device {args.DestinationAddress} has status {perc}"); return; } }
How can I put the "temp" definition to a textbox or label, whatever I did did not work. Can you help?
static void Event(object sender, KnxEventArgs args) { if (args.DestinationAddress.Equals(new KnxThreeLevelGroupAddress(1, 1, 16))) { decimal temp = (decimal)connection.FromDataPoint("9.001", args.State); textbox1.text=temp.tostring(); return; }
if (args.DestinationAddress.ToString() == "1/1/17") { int perc = (int)connection.FromDataPoint("5.001", args.State); Console.WriteLine($"New Event: device {args.DestinationAddress} has status {perc}"); return; } }