ASCOM.cam8_v08.Camera.WriteProfile C# (CSharp) Method

WriteProfile() private method

Write the device configuration to the ASCOM Profile store
private WriteProfile ( ) : void
return void
        internal void WriteProfile()
        {
            using (Profile driverProfile = new Profile())
            {
                driverProfile.DeviceType = "Camera";
                driverProfile.WriteValue(driverID, traceStateProfileName, traceState.ToString());
                driverProfile.WriteValue(driverID, gainStateProfileName, gainState.ToString());
                driverProfile.WriteValue(driverID, offsetStateProfileName, offsetState.ToString());
                driverProfile.WriteValue(driverID, onTopStateProfileName, onTopState.ToString());
                driverProfile.WriteValue(driverID, coolerEnabledStateProfileName, coolerEnabledState.ToString());
                driverProfile.WriteValue(driverID, coolerComPortStateProfileName, coolerComPortState.ToString());
            }
        }