public GamesListviewItem(GamesListview parent, CatalogEditor catalogEditor, Game game, bool allowSelection, bool allowEditing) { InitializeComponent(); this.BackgroundColor = this.Background; this.GamesListview = parent; this.CatalogEditor = catalogEditor; this.Game = game; this.AllowSelection = allowSelection; WPFHelper.SetVisible(editPanel, allowEditing); UpdateView(); }