lifeemotions / knx.net

KNX.net provides a KNX API for .NET
MIT License
101 stars 47 forks source link

Printing the incoming value to the textbox #67

Open Malexys opened 3 years ago

Malexys commented 3 years ago

ı dont write text.box.Why?

public void Event(string address, string state) {

        decimal temp = (decimal)_connection.FromDataPoint("9.001", state);

        if (address == "5/0/7")
        {
            decimal set_temp = (decimal)_connection.FromDataPoint("9.001", state);
            MessageBox.Show("Güncellenen Durum" + address + "   " + set_temp);
            textBox1.Text = set_temp.toSting();

            return;

        }
        if (address == "5/0/0")
        {
            decimal current_temp = (decimal)_connection.FromDataPoint("9.001", state);
            MessageBox.Show("Güncellenen Durum" + address + "   " + current_temp);
            return;
        }

    }