Beispiel #1
0
 public static object Microsoft_Robotics_Services_MultiDeviceWebCam_CameraInstance_TO_Microsoft_Robotics_Services_MultiDeviceWebCam_Proxy_CameraInstance(object transformFrom)
 {
     global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.CameraInstance target = new global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.CameraInstance();
     global::Microsoft.Robotics.Services.MultiDeviceWebCam.CameraInstance       from   = ((global::Microsoft.Robotics.Services.MultiDeviceWebCam.CameraInstance)(transformFrom));
     target.FriendlyName = from.FriendlyName;
     target.DevicePath   = from.DevicePath;
     global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.MultiDeviceWebCam.Format> tmp = from.SupportedFormats;
     if ((tmp != null))
     {
         int count = tmp.Count;
         global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.Format> tmp0 = new global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.Format>(count);
         for (int index = 0; (index < count); index = (index + 1))
         {
             global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.Format tmp1 = default(global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.Format);
             global::Microsoft.Robotics.Services.MultiDeviceWebCam.Format       tmp2 = tmp[index];
             if ((tmp2 != null))
             {
                 tmp1 = ((global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.Format)(Microsoft_Robotics_Services_MultiDeviceWebCam_Format_TO_Microsoft_Robotics_Services_MultiDeviceWebCam_Proxy_Format(tmp2)));
             }
             tmp0.Add(tmp1);
         }
         target.SupportedFormats = tmp0;
     }
     global::Microsoft.Robotics.Services.MultiDeviceWebCam.Format tmp3 = from.Format;
     if ((tmp3 != null))
     {
         target.Format = ((global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.Format)(Microsoft_Robotics_Services_MultiDeviceWebCam_Format_TO_Microsoft_Robotics_Services_MultiDeviceWebCam_Proxy_Format(tmp3)));
     }
     target.InUse = from.InUse;
     return(target);
 }
Beispiel #2
0
 public static object Microsoft_Robotics_Services_MultiDeviceWebCam_Format_TO_Microsoft_Robotics_Services_MultiDeviceWebCam_Proxy_Format(object transformFrom)
 {
     global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.Format target = new global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.Format();
     global::Microsoft.Robotics.Services.MultiDeviceWebCam.Format       from   = ((global::Microsoft.Robotics.Services.MultiDeviceWebCam.Format)(transformFrom));
     target.Width              = from.Width;
     target.Height             = from.Height;
     target.MinFramesPerSecond = from.MinFramesPerSecond;
     target.MaxFramesPerSecond = from.MaxFramesPerSecond;
     target.Compression        = from.Compression;
     return(target);
 }