public static void Checklamps() { for (int i = 1; i < 10; i++) { SendAndReceive.GetData(i); } }
private void LightBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { string id = LightBox.SelectedItem.ToString(); if (!id.Contains("alle")) { SendAndReceive.GetData(Int32.Parse(id)); } }
private void button_Click_1(object sender, RoutedEventArgs e) { SendAndReceive.GetData(1); }