Пример #1
0
 public static MeeGoDevice GetChosenDevice()
 {
     if (chosenDevice == null)
     {
         DispatchService.GuiSyncDispatch(delegate {
             chosenDevice = MeeGoDevicePicker.GetDevice(null);
         });
     }
     return(chosenDevice);
 }
Пример #2
0
 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());
     }
 }
Пример #3
0
		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 ();
			}
		}