public void OnScrapClose(ScrapEventArgs e) { if (this.ScrapCloseEvent != null) { this.ScrapCloseEvent(this, e); } }
public void OnScrapClose(ScrapEventArgs e) { if (this.ScrapCloseEvent != null) { this.ScrapCloseEvent(this, e); } CacheManager.DeleteCacheInfo(mInfo); mInfo = null; }
public void ScrapClose(object sender, ScrapEventArgs e) { ScrapBase base2 = (ScrapBase)sender; this._scraps.Remove(base2); if ((this._dustbox != null) && (this._dustcap > 0)) { if (this._dustbox.Count == this._dustcap) { this._dustbox.Dequeue().ScrapClose(); } this._dustbox.Enqueue(base2); base2.Hide(); } else { base2.ScrapClose(); } if (this.ScrapRemoved != null) { this.ScrapRemoved(this, new ScrapEventArgs()); } }