/// <summary> ///Clones RobotDashboardState ///</summary> ///<returns>cloned value</returns> public virtual object Clone() { global::Microsoft.Robotics.Services.RobotDashboard.Proxy.RobotDashboardState target0 = new global::Microsoft.Robotics.Services.RobotDashboard.Proxy.RobotDashboardState(); this.CopyTo(target0); return(target0); }
public static object Microsoft_Robotics_Services_RobotDashboard_RobotDashboardState_TO_Microsoft_Robotics_Services_RobotDashboard_Proxy_RobotDashboardState(object transformFrom) { global::Microsoft.Robotics.Services.RobotDashboard.Proxy.RobotDashboardState target = new global::Microsoft.Robotics.Services.RobotDashboard.Proxy.RobotDashboardState(); global::Microsoft.Robotics.Services.RobotDashboard.RobotDashboardState from = ((global::Microsoft.Robotics.Services.RobotDashboard.RobotDashboardState)(transformFrom)); target.TiltAngle = from.TiltAngle; global::Microsoft.Robotics.Services.RobotDashboard.GUIOptions tmp = from.Options; if ((tmp != null)) { target.Options = ((global::Microsoft.Robotics.Services.RobotDashboard.Proxy.GUIOptions)(Microsoft_Robotics_Services_RobotDashboard_GUIOptions_TO_Microsoft_Robotics_Services_RobotDashboard_Proxy_GUIOptions(tmp))); } return(target); }
/// <summary> ///Copies the data member values of the current RobotDashboardState to the specified target object ///</summary> ///<param name="target">target object (must be an instance of)</param> public virtual void CopyTo(Microsoft.Dss.Core.IDssSerializable target) { global::Microsoft.Robotics.Services.RobotDashboard.Proxy.RobotDashboardState typedTarget = ((global::Microsoft.Robotics.Services.RobotDashboard.Proxy.RobotDashboardState)(target)); typedTarget._TiltAngle = this._TiltAngle; if ((this._Options != null)) { global::Microsoft.Robotics.Services.RobotDashboard.Proxy.GUIOptions tmp = new global::Microsoft.Robotics.Services.RobotDashboard.Proxy.GUIOptions(); ((Microsoft.Dss.Core.IDssSerializable)(this._Options)).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp))); typedTarget._Options = tmp; } }