示例#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 ();
			}
		}