[chore:] implemented GetCustomerByID()

This commit is contained in:
2026-06-03 16:03:49 +02:00
parent 8b740304f6
commit b22d33dc97
+13
View File
@@ -165,6 +165,19 @@ public class Customer
public char separator { get; set; } = ','; public char separator { get; set; } = ',';
public int ID { get; } public int ID { get; }
public static Customer GetCustomerByID(int id)
{
foreach (var customer in Settings._instance.customers.customers)
{
if (id == customer.ID)
{
return customer;
}
}
return null;
}
// public static int GetIDByCustomerListItem(string item_content) // public static int GetIDByCustomerListItem(string item_content)
// { // {