Files

55 lines
1.5 KiB
C#
Raw Permalink Normal View History

using Microsoft.Iris;
2022-06-19 13:10:44 -05:00
using System;
namespace Microsoft.Zune.Library;
internal class LibraryVirtualList : VirtualList, ISearchableList
2022-06-19 13:10:44 -05:00
{
private StrixLibraryDataProviderQuery m_owner;
private ZuneQueryList m_pQueryList;
private string m_itemTypeName;
private object m_itemTypeCookie;
private bool m_autoRefresh;
private bool m_useSlowDataRequests;
private bool m_antialiasImageEdges;
public LibraryVirtualList(StrixLibraryDataProviderQuery owner, ZuneQueryList pQueryList,
bool autoRefresh, bool antialiasEdges)
: base(true)
2022-06-19 13:10:44 -05:00
{
try
2022-06-19 13:10:44 -05:00
{
this.m_owner = owner;
base.StoreQueryResults = true;
this.m_pQueryList = pQueryList;
//pQueryList.AddRef();
//this.m_fBlockChanges = false;
//this.m_fEndBulkArrivedDuringBlock = false;
this.m_antialiasImageEdges = antialiasEdges;
this.m_autoRefresh = autoRefresh;
if (autoRefresh)
2022-06-19 13:10:44 -05:00
{
//this.m_pQueryList.Advise(this);
2022-06-19 13:10:44 -05:00
}
foreach (var item in pQueryList)
Add(item);
2022-06-19 13:10:44 -05:00
}
catch
2022-06-19 13:10:44 -05:00
{
base.Dispose(ModelItemDisposeMode.KeepOwnerReference);
throw;
2022-06-19 13:10:44 -05:00
}
}
internal void SetItemTypeCookie(string itemTypeName, object itemTypeCookie)
{
this.m_itemTypeName = itemTypeName;
this.m_itemTypeCookie = itemTypeCookie;
}
public int SearchForString(string searchString)
{
throw new NotImplementedException();
}
}