void viewer_ItemVisualDataQueried(object sender, ViewerItemEventArgs e) { var item = e.Item; if (item.VisualData == null) item.VisualData = new ItemVisualData(item); }
void m_items_ItemQueried(object sender, ViewerItemEventArgs e) { if (m_autoParse) { var item = e.Item; var parser = item.Parser; if (parser == null || !parser.IsParsed) this.EnqueueParsing(item); } if (this.ItemQueried != null) { m_window.ThreadSafeBegin(_ => { if (this.ItemQueried != null) this.ItemQueried(sender, e); }); } }
void viewer_ItemParsingDone(object sender, ViewerItemEventArgs e) { var item = e.Item; if (item.VisualData == null) item.VisualData = this.CreateDataForItem(item); else item.NotifyDataChanged(); }