//public void RegisterClean(TModel e) //{ // Dirty.Remove(e); //} public TModel RegisterRemoved(TModel e) { if (New.Remove(e)) { return(e); } Dirty.Remove(e); if (!Removed.Contains(e)) { Removed.Add(e); } return(e); }
public void AssetLoading(object sender, IContentEventHelper e) { try { Originals[e.AssetName] = e.Data; Dirty.Remove(e.AssetName); if (this.Merge(e.AssetName, e.Data)) { e.ReplaceWith(Assets[e.AssetName]); } else { Assets[e.AssetName] = e.Data; } } catch (Exception ex) { ex.ToString(); } }