[chore:] listbox item type is no string anymore (hopefully I tested everything?)
This commit is contained in:
+11
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user