internal async Task OnSaved(ReplicateDataMessage message, IEntity entity, SaveMode mode)
 {
     if (Saved != null)
     {
         await Saved.Raise(new ReplicationSaveMessageProcessedEventArgs(message, entity, mode));
     }
 }
Beispiel #2
0
        protected internal virtual async Task OnSaved(SaveEventArgs e)
        {
            InvalidateCachedReferences();
            await Saved.Raise(e);

            await GlobalEntityEvents.OnInstanceSaved(new GlobalSaveEventArgs(this, e.Mode));

            InvalidateCachedReferences();
        }
        protected override bool OnDocumentSaved(IDocument document)
        {
            var sd = document as ISledDocument;

            if (sd != null)
            {
                Saved.Raise(this, new SledDocumentServiceEventArgs(sd));
            }

            return(base.OnDocumentSaved(document));
        }
 /// <summary>
 /// Called when the item is Saved
 /// </summary>
 /// <param name="e">SavedEventArgs item</param>
 protected virtual void OnSaved(SavedEventArgs e)
 {
     Saved.Raise(this, e);
 }
Beispiel #5
0
 public void Save()
 {
     File.WriteAllText(FilePath, Content);
     IsChanged = false;
     Saved.Raise(this);
 }