[chore:] implemented GetCustomerByID()
This commit is contained in:
@@ -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)
|
||||||
// {
|
// {
|
||||||
|
|||||||
Reference in New Issue
Block a user