public static MeeGoDevice GetChosenDevice() { if (chosenDevice == null) { DispatchService.GuiSyncDispatch(delegate { chosenDevice = MeeGoDevicePicker.GetDevice(null); }); } return(chosenDevice); }
public static MeeGoDevice GetDevice(Window parentWindow) { using (var dialog = new MeeGoDevicePicker(parentWindow ?? MessageService.RootWindow)) { int result = dialog.Run(); if (result != (int)ResponseType.Ok) { return(null); } return(dialog.GetDevice()); } }
public static MeeGoDevice GetDevice (Window parentWindow) { using (var dialog = new MeeGoDevicePicker (parentWindow ?? MessageService.RootWindow)) { int result = dialog.Run (); if (result != (int)ResponseType.Ok) return null; return dialog.GetDevice (); } }