public static BTDeviceInfo ShowBox(Window parent) { SelectBT win = new SelectBT(parent); win.ShowDialog(); return(win.SelectedBT); }
private void buttonConnectEvent(object sender, EventArgs e) { BTDeviceInfo device = SelectBT.ShowBox(this); if (device != null) { DI.W.BTConnectAsync(device); } }