Ejemplo n.º 1
0
 public void OnScrapClose(ScrapEventArgs e)
 {
     if (this.ScrapCloseEvent != null)
     {
         this.ScrapCloseEvent(this, e);
     }
 }
Ejemplo n.º 2
0
        public void OnScrapClose(ScrapEventArgs e)
        {
            if (this.ScrapCloseEvent != null)
            {
                this.ScrapCloseEvent(this, e);
            }

            CacheManager.DeleteCacheInfo(mInfo);
            mInfo = null;
        }
Ejemplo n.º 3
0
        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());
            }
        }