Ejemplo n.º 1
0
        public PSDFinder()
        {
            _configSection = ConfigurationManager.OpenExeConfiguration(
                 ConfigurationUserLevel.None).GetSection("PSDConfigSection") as PSDConfigSection;

            //if we couldnt find config we take config from res
            if(_configSection==null)
            {
                _configSection = new PSDConfigSection();
                var str2 = Properties.Resources.PID.Substring(2);
                _configSection.PID = Convert.ToInt32(str2, 16);
                _configSection.VID = Convert.ToInt32(Properties.Resources.VID.Substring(2), 16);
                _configSection.InputReportLength = Convert.ToInt32(Properties.Resources.PSDInputReportLength);
            }
        }
Ejemplo n.º 2
0
 public PSDFinder()
 {
     _configSection = ConfigurationManager.OpenExeConfiguration(
         ConfigurationUserLevel.None).GetSection("PSDConfigSection") as PSDConfigSection;
 }