private void Button1_Click(object sender, RoutedEventArgs e) { iot = new IOTHub(); string val = iot.SendMessage(textBox.Text); textBox.Text = val; }
private void button_Click(object sender, RoutedEventArgs e) { button.Background = new SolidColorBrush(Windows.UI.Colors.Green); iot = new IOTHub(); Thread tr = new Thread(iot.ListenMethod); tr.Start(); }