fix: more performant loading
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user