V1.0.0.7 - 2025/12/22
* Database improved all
This commit is contained in:
@@ -78,6 +78,28 @@ namespace LFP_Manager.Utils
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region PATH HELPERS
|
||||
public static string AppDir()
|
||||
{
|
||||
var p = Path.GetDirectoryName(Application.ExecutablePath);
|
||||
return string.IsNullOrEmpty(p) ? AppContext.BaseDirectory : p;
|
||||
}
|
||||
|
||||
public static string CombineApp(params string[] segs)
|
||||
{
|
||||
if (segs == null || segs.Length == 0)
|
||||
return string.Empty;
|
||||
|
||||
return Path.Combine(segs);
|
||||
}
|
||||
|
||||
public static string Utf8Z(byte[] bytes)
|
||||
{
|
||||
var s = Encoding.UTF8.GetString(bytes ?? new byte[0]);
|
||||
return s.Trim('\0');
|
||||
}
|
||||
#endregion
|
||||
|
||||
public static int GetModuleQty(CommConfig aConfig)
|
||||
{
|
||||
int mQty = 0;
|
||||
|
||||
Reference in New Issue
Block a user