public Config(string path) { this.path = path; this.param = new Dictionary <string, List <double> >(); ini = new HmzIniFile(this.path); ini.Create(); }
static IDevice() { if (filename == null) { filename = @".\profile.ini"; } fileHandle = new HmzIniFile(filename); fileHandle.Create(); }
static Colorimeter() { string[] keys = new string[] { "White", "Black", "Red", "Green", "Blue" }; cameraKeyValueData = new Dictionary <string, CameraConfigData>(5); HmzIniFile inifile = new HmzIniFile(@".\profile.ini"); for (int i = 0; i < keys.Length; i++) { CameraConfigData cameraConfigData = new CameraConfigData(); cameraConfigData.Brightness = (float)inifile.ReadDouble(keys[i], "brightness"); cameraConfigData.Exposure = (float)inifile.ReadDouble(keys[i], "exposure"); cameraConfigData.Gamma = (float)inifile.ReadDouble(keys[i], "gamma"); cameraConfigData.Gain = (float)inifile.ReadDouble(keys[i], "gain"); cameraConfigData.Shutter = (float)inifile.ReadDouble(keys[i], "shutter"); cameraKeyValueData.Add(keys[i], cameraConfigData); } }
public Config(string path) { this.FixturePortName = ""; this.LCP3005PortName = ""; this.RedWeight = 0.72f; this.GreenWeight = 0.18f; this.BlueWeight = 0.1f; this.IsOnlineShopfloor = true; this.IsScanSerialNumber = false; this.IsSimulation = false; this.Station = "FATP"; this.ProductType = "Hodor"; this.TestMode = "Automatic"; this.ScriptName = @".\x2configfile.xml"; this.path = path; ini = new HmzIniFile(this.path); ini.Create(); ReadCurrentProDuctRecord(); this.ReadProfile(); }