private void NewDevice_Click(object sender, RoutedEventArgs e) { _newDeviceUI = new NewDeviceUI(_availableDevices); _newDeviceUI.NewDmxDevice += new EventHandler <NewDmxDeviceEventArgs>(NewDeviceUI_NewDmxDevice); _newDeviceUI.ShowDialog(); }