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); }
public static object Microsoft_Robotics_Services_MultiDeviceWebCam_WebCamState_TO_Microsoft_Robotics_Services_MultiDeviceWebCam_Proxy_WebCamState(object transformFrom) { global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.WebCamState target = new global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.WebCamState(); global::Microsoft.Robotics.Services.MultiDeviceWebCam.WebCamState from = ((global::Microsoft.Robotics.Services.MultiDeviceWebCam.WebCamState)(transformFrom)); global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.MultiDeviceWebCam.CameraInstance> tmp = from.Cameras; if ((tmp != null)) { int count = tmp.Count; global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.CameraInstance> tmp0 = new global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.CameraInstance>(count); for (int index = 0; (index < count); index = (index + 1)) { global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.CameraInstance tmp1 = default(global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.CameraInstance); global::Microsoft.Robotics.Services.MultiDeviceWebCam.CameraInstance tmp2 = tmp[index]; if ((tmp2 != null)) { tmp1 = ((global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.CameraInstance)(Microsoft_Robotics_Services_MultiDeviceWebCam_CameraInstance_TO_Microsoft_Robotics_Services_MultiDeviceWebCam_Proxy_CameraInstance(tmp2))); } tmp0.Add(tmp1); } target.Cameras = tmp0; } global::Microsoft.Robotics.Services.MultiDeviceWebCam.CameraInstance tmp3 = from.Selected; if ((tmp3 != null)) { target.Selected = ((global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.CameraInstance)(Microsoft_Robotics_Services_MultiDeviceWebCam_CameraInstance_TO_Microsoft_Robotics_Services_MultiDeviceWebCam_Proxy_CameraInstance(tmp3))); } target.CaptureFile = from.CaptureFile; target.FramesOnDemand = from.FramesOnDemand; target.CameraDeviceName = from.CameraDeviceName; global::Microsoft.Robotics.PhysicalModel.Pose tmp4 = from.Pose; target.Pose = ((global::Microsoft.Robotics.PhysicalModel.Proxy.Pose)(Microsoft_Robotics_PhysicalModel_Proxy_Pose_TO_Microsoft_Robotics_PhysicalModel_Proxy_Pose0(tmp4))); global::Microsoft.Robotics.PhysicalModel.Vector2 tmp5 = from.ImageSize; target.ImageSize = ((global::Microsoft.Robotics.PhysicalModel.Proxy.Vector2)(Microsoft_Robotics_PhysicalModel_Proxy_Vector2_TO_Microsoft_Robotics_PhysicalModel_Proxy_Vector20(tmp5))); target.ViewAngle = from.ViewAngle; target.Quality = from.Quality; target.LastFrameUpdate = from.LastFrameUpdate; return(target); }