mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Driver Updates
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user