fix: Update instead of re-fill

This commit is contained in:
Frozd
2025-11-28 12:09:07 +01:00
parent cca7c37ffe
commit 746f8c4039
4 changed files with 84 additions and 5 deletions

View File

@@ -12,6 +12,8 @@ namespace CarManagerV2
{
public partial class CarCard : UserControl
{
public Car Car;
public string CarName
{
get { return lblCarName.Text; }
@@ -58,5 +60,16 @@ namespace CarManagerV2
this.CardClicked(this, EventArgs.Empty);
}
}
public void ClearCardClickedHandlers()
{
if (this.CardClicked != null)
{
foreach (Delegate d in this.CardClicked.GetInvocationList())
{
this.CardClicked -= (EventHandler)d;
}
}
}
}
}