Пример #1
0
        private void Button1_Click(object sender, RoutedEventArgs e)
        {
            iot = new IOTHub();
            string val = iot.SendMessage(textBox.Text);


            textBox.Text = val;
        }
Пример #2
0
        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();
        }