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

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

            InvalidateCachedReferences();
        }
Exemplo n.º 3
0
        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);
 }
Exemplo n.º 5
0
 public void Save()
 {
     File.WriteAllText(FilePath, Content);
     IsChanged = false;
     Saved.Raise(this);
 }