fix: more performant loading

This commit is contained in:
Frozd
2025-11-28 12:53:29 +01:00
parent 5b56d76cd7
commit e89fc79ebb
3 changed files with 5394 additions and 8425 deletions

View File

@@ -46,6 +46,18 @@ namespace CarManagerV2
this.Click += (s, e) => this.OnCardClicked();
}
public async void LoadImage()
{
await Task.Run(() =>
{
Image img = ImageManager.GetImage(this.Car);
if (img != null)
{
this.CarImage = img;
}
});
}
private void ForwardClick(object sender, EventArgs e)
{
// Raise your CardClicked event no matter what got clicked