fix: Update instead of re-fill
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user