Driver Updates

This commit is contained in:
Serge
2023-06-05 17:31:59 +02:00
parent 4c8291c74b
commit 4bbfbd0382
14 changed files with 699 additions and 55 deletions

View File

@@ -61,8 +61,25 @@ public static class AppConfig
GetModel();
return (_model is not null && _model.ToLower().Contains(contains.ToLower()));
}
public static string GetModelShort()
{
GetModel();
if (_model is not null)
{
int trim = _model.LastIndexOf("_");
if (trim > 0) return _model.Substring(trim+1);
trim = _model.LastIndexOf(" ");
if (trim > 0) return _model.Substring(trim + 1);
return _model;
}
return "";
}
private static void initConfig()
{
config = new Dictionary<string, object>();