public void AddScrap(ScrapBase newScrap) { newScrap.Manager = this; this._scraps.Add(newScrap); newScrap.OnScrapCreated(); if (this.ScrapAdded != null) { this.ScrapAdded(this, new ScrapEventArgs(newScrap)); } }
public void AddScrap(ScrapBase newScrap, ScrapBaseInfo pInfo = null) { newScrap.cacheInfo = pInfo ?? new ScrapBaseInfo(newScrap.Image, newScrap.Left, newScrap.Top, newScrap.Width, newScrap.Height, System.DateTime.Now.Ticks.ToString()); newScrap.Manager = this; this._scraps.Add(newScrap); newScrap.OnScrapCreated(); if (this.ScrapAdded != null) { this.ScrapAdded(this, new ScrapEventArgs(newScrap)); } }