protected void OnModelReloadedHandler(object o, EventArgs args) { if (model_count != album_loader.Model.Count) { model_count = album_loader.Model.Count; CoverManager.ReloadCovers(); } }
public void SetModel(FilterListModel <AlbumInfo> value) { if (value != album_loader.Model) { if (album_loader.Model != null) { album_loader.Model.Cleared -= OnModelClearedHandler; album_loader.Model.Reloaded -= OnModelReloadedHandler; } album_loader.Model = value; if (album_loader.Model != null) { album_loader.Model.Cleared += OnModelClearedHandler; album_loader.Model.Reloaded += OnModelReloadedHandler; model_count = album_loader.Model.Count; } CoverManager.ReloadCovers(); } }
protected void OnModelClearedHandler(object o, EventArgs args) { CoverManager.ReloadCovers(); }