mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-12 00:45:14 +00:00
Update ScreenMatching.cs
This commit is contained in:
parent
016239b014
commit
ba9088f43f
|
@ -67,20 +67,20 @@ public class ScreenMatching
|
||||||
templateImages = new List<Bitmap>();
|
templateImages = new List<Bitmap>();
|
||||||
|
|
||||||
// Read values from configration file
|
// Read values from configration file
|
||||||
string mode;
|
string _mode = null;
|
||||||
string _params;
|
string __params = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
mode = this.parent.GetSettingsFileHandler().Read("SCREEN_TIME_MODE", "Service");
|
_mode = this.parent.GetSettingsFileHandler().Read("SCREEN_TIME_MODE", "Service");
|
||||||
_params = this.parent.GetSettingsFileHandler().Read("SCREEN_TIME_PARAMS", "Service");
|
__params = this.parent.GetSettingsFileHandler().Read("SCREEN_TIME_PARAMS", "Service");
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
this.parent.Log($"Failed to read from configration file: {ex.Message}");
|
this.parent.Log($"Failed to read from configration file: {ex.Message}");
|
||||||
}
|
}
|
||||||
|
|
||||||
SetMode(mode);
|
SetMode(_mode);
|
||||||
SetParams(_params);
|
SetParams(__params);
|
||||||
LoadTemplateImages();
|
LoadTemplateImages();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user