private void OpenSetupDialog(object o) { if (SelectedDevice?.HasSetupDialog == true) { SelectedDevice.SetupDialog(); } }