public MainWindow() { InitializeComponent(); child = new LightStrip(this); child.Show(); child.ContentChanged(); Type cType = typeof(Controller); foreach (MethodInfo inf in cType.GetMethods()) { if (inf.ReturnType == typeof(void) && inf.GetParameters().Length == 0 && inf.Name != "Stop" && inf.Name != "ThreadMain") { wombocombo.Items.Add(new ComboBoxItem() { Content = inf.Name }); } } wombocombo.SelectedIndex = 0; c = new Controller(child); Closed += MainWindow_Closing; }
private void update_Click(object sender, RoutedEventArgs e) { child.ContentChanged(); }