Ejemplo n.º 1
0
        private static ImageSaveHelper _imageSaveHelper;// static instance of the class to handle singleton

        /// <summary>
        /// Constructor to create an instance of the image save helper object
        /// </summary>
        private ImageSaveHelper()
        {
            capture_log = new List <Args>();
            if (IVLCamVariables._Settings == null)
            {
                IVLCamVariables._Settings = CameraModuleSettings.GetInstance();
            }
            bg                     = new System.ComponentModel.BackgroundWorker();
            bg.DoWork             += bg_DoWork;
            bg.RunWorkerCompleted += bg_RunWorkerCompleted;
            IVLCamVariables._eventHandler.Register(IVLCamVariables._eventHandler.SaveFrames2Disk, new EventHandler.NotificationHandler(SaveFrames));
            maskSettingsSerializer    = new XmlSerializer(typeof(INTUSOFT.Imaging.MaskSettings));
            captureSettingsSerializer = new XmlSerializer(typeof(CaptureLog));
        }
Ejemplo n.º 2
0
 public static CameraModuleSettings GetInstance()
 {
     try
     {
         if (_cameraModuleSettings == null)
         {
             _cameraModuleSettings = new CameraModuleSettings();
         }
     }
     catch (Exception ex)
     {
         CameraLogger.WriteException(ex, Exception_Log);
         // CameraLogger.WriteException(ex, Exception_Log);
     }
     return(_cameraModuleSettings);
 }