Remove unused unregisterEvents pattern
This commit is contained in:
parent
5874b0459d
commit
f3db5f0aab
1 changed files with 4 additions and 9 deletions
|
|
@ -76,8 +76,6 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
{
|
||||
private ThemeConfig theme;
|
||||
|
||||
private event EventHandler unregisterEvents;
|
||||
|
||||
public RowViewItem(ListViewItem listViewItem, int thumbWidth, int thumbHeight, ThemeConfig theme)
|
||||
: base(listViewItem, thumbWidth, thumbHeight)
|
||||
{
|
||||
|
|
@ -89,7 +87,10 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
this.Margin = new BorderDouble(6, 0, 6, 6);
|
||||
this.theme = theme;
|
||||
|
||||
var row = new FlowLayoutWidget(FlowDirection.LeftToRight) { HAnchor = HAnchor.Stretch };
|
||||
var row = new FlowLayoutWidget(FlowDirection.LeftToRight)
|
||||
{
|
||||
HAnchor = HAnchor.Stretch
|
||||
};
|
||||
|
||||
row.AddChild(imageWidget = new ImageWidget(thumbWidth, thumbHeight)
|
||||
{
|
||||
|
|
@ -127,12 +128,6 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
}
|
||||
}
|
||||
|
||||
public override void OnClosed(ClosedEventArgs e)
|
||||
{
|
||||
unregisterEvents?.Invoke(this, null);
|
||||
base.OnClosed(e);
|
||||
}
|
||||
|
||||
public override Color BackgroundColor
|
||||
{
|
||||
get => this.IsSelected ? theme.AccentMimimalOverlay : theme.ThumbnailBackground;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue