private void setConfig()
 {
     Config conf = new Config();
     connStrLocal = conf.getConnStrLocal();
     connStrRemote = conf.getConnStrRemote();
     runMode = conf.getRunMode();
     dataRootDir = conf.getDataRootDir();
     activeKey = conf.getActiveKey();
     TrackerMemoryFile = conf.getTrackerMemoryFile();
 }
        private void IPCamForm_new_Load(object sender, EventArgs e)
        {
            Config conf = new Config();
            connStrLocal = conf.getConnStrLocal();
            connStrRemote = conf.getConnStrRemote();
            runMode = conf.getRunMode();
            dataRootDir = conf.getDataRootDir();
            activeKey = conf.getActiveKey();
            TrackerMemoryFile = conf.getTrackerMemoryFile();

            if (FSDK.FSDKE_OK != FSDK.ActivateLibrary(activeKey))
            {
                MessageBox.Show("Please run the License Key Wizard (Start - Luxand - FaceSDK - License Key Wizard)", "Error activating FaceSDK", MessageBoxButtons.OK, MessageBoxIcon.Error);
                Application.Exit();
            }

            FSDK.InitializeLibrary();
        }