[chore:] listbox item type is no string anymore (hopefully I tested everything?)

This commit is contained in:
2026-05-02 16:27:43 +02:00
parent f9e419d573
commit f0598a39ec
3 changed files with 67 additions and 52 deletions
+11 -6
View File
@@ -135,7 +135,7 @@ public class Global
public class Customers
{
public List<Customer> customers = new();
public int current { get; set; } = 0;
public Customer current { get; set; } = null;
}
public class Customer
@@ -149,6 +149,11 @@ public class Customer
ID = highestID + 1;
}
public override string ToString()
{
return name;
}
public string name { get; set; } = "";
public string description { get; set; } = "";
@@ -158,11 +163,11 @@ public class Customer
public int ID { get; }
public static int GetIDByCustomerListItem(string item_content)
{
var id = item_content.Split(" - ")[0];
return int.Parse(id);
}
// public static int GetIDByCustomerListItem(string item_content)
// {
// var id = item_content.Split(" - ")[0];
// return int.Parse(id);
// }
}
public class AddressSets