protected virtual void OnItemClosed(ThumbViewItemEventArgs e) { if (ItemClosed != null) { ItemClosed(this, e); } }
protected override void OnItemClosed(ThumbViewItemEventArgs e) { base.OnItemClosed(e); if (e.Item is FileThumbItem) { var fti = (FileThumbItem)e.Item; RecentFilesManage.Default.Remove(fti.Filename); } }
void OnItemClose(ThumbItem item) { if (item == null) { throw new ArgumentNullException(); } // if (Items.Contains(item)) { var e = new ThumbViewItemCancelEventArgs(item); OnItemClosing(e); if (e.Cancel) { return; } Items.Remove(item); var e2 = new ThumbViewItemEventArgs(item); OnItemClosed(e2); } }