Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CameraActuator" /> class.
 /// </summary>
 public CameraActuator()
 {
     CameraActuatorSettings = new Settings();
 }
Example #2
0
        /// <summary>
        /// Performs initialization. Hides vision software windows
        /// </summary>
        /// <returns>true on success</returns>
        public override bool Init()
        {
            Settings.SettingsFilePath = UserManager.GetFullPath(SettingsFileName);
            CameraActuatorSettings = Settings.Load();

            ServerAddress = CameraActuatorSettings.SocketClientConnectToAddress;
            ServerPort = CameraActuatorSettings.SocketClientConnectToPort;

            IntPtr handle = User32Interop.FindWindow(null, CameraActuatorSettings.ACATVisionWindowName);
            if (handle != IntPtr.Zero)
            {
                Windows.MinimizeWindow(handle);
            }

            bool retVal = base.Init();

            OnInitDone();

            return retVal;
        }