import in 2 step
This commit is contained in:
@@ -25,7 +25,7 @@ namespace Thermo.Cam.Setup
|
||||
/// Classe gestione ThermoCam (oggetti Image, metodi processing...) x FlirCam
|
||||
/// </summary>
|
||||
protected TCContr TCamCtrl = new TCContr($"{BASE_PATH}\\images\\", BASE_PATH);
|
||||
protected string ThermoConfPath = System.Configuration.ConfigurationManager.AppSettings["ThermoConfPath"];
|
||||
protected string ThermoConfPath = System.Configuration.ConfigurationManager.AppSettings["ThermoConfPath"];
|
||||
|
||||
#endregion Protected Fields
|
||||
|
||||
@@ -46,6 +46,8 @@ namespace Thermo.Cam.Setup
|
||||
TCamCtrl.eh_CameraConnStatusChanged += ImgData_eh_CameraConnStatusChanged;
|
||||
// cerco se ho un set di parametri già impostati...
|
||||
TCamCtrl.tryReloadConf();
|
||||
// fix button x reload da conf esportata
|
||||
btnImportConfig.Enabled = TCamCtrl.confFileExists(ThermoConfPath);
|
||||
// sistemo le conf temp
|
||||
setRangeTemp();
|
||||
// calcolo i currConf.destPoints
|
||||
@@ -609,8 +611,6 @@ namespace Thermo.Cam.Setup
|
||||
TCamCtrl.fileSave();
|
||||
}
|
||||
}
|
||||
// fix button x reload da conf esportata
|
||||
btnImportConfig.Enabled = TCamCtrl.confFileExists(ThermoConfPath);
|
||||
// avanzo prog bar
|
||||
progBar.Increment(5);
|
||||
if (progBar.Value >= progBar.Maximum)
|
||||
@@ -680,8 +680,8 @@ namespace Thermo.Cam.Setup
|
||||
if (fatto)
|
||||
{
|
||||
// fix valori
|
||||
minRangeTemp= TCamCtrl.currConf.TargetRange.Min ;
|
||||
maxRangeTemp=TCamCtrl.currConf.TargetRange.Max;
|
||||
minRangeTemp = TCamCtrl.currConf.TargetRange.Min;
|
||||
maxRangeTemp = TCamCtrl.currConf.TargetRange.Max;
|
||||
dimX = TCamCtrl.currConf.TargetSize.X;
|
||||
dimY = TCamCtrl.currConf.TargetSize.Y;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user