From b22d33dc9762ebd5f7c7aa0fae06b53bbecef2b2 Mon Sep 17 00:00:00 2001 From: Elias Fierke Date: Wed, 3 Jun 2026 16:03:49 +0200 Subject: [PATCH] [chore:] implemented GetCustomerByID() --- DataStore/Settings.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/DataStore/Settings.cs b/DataStore/Settings.cs index 67be3fe..89890a0 100644 --- a/DataStore/Settings.cs +++ b/DataStore/Settings.cs @@ -165,6 +165,19 @@ public class Customer public char separator { get; set; } = ','; 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) // {