示例#1
0
        private async Task SaveInnerAsync()
        {
            SavingFile?.Invoke(this, new EventArgs());
            await JsonFile.SaveAsync(Filename, Document, UpdateSerializerSettingsOnSave);

            Controls.IsDirty = false;
            FileSaved?.Invoke(this, new EventArgs());
        }
示例#2
0
 /// <summary>
 /// The OnSavingFile
 /// </summary>
 /// <param name="e">The e<see cref="SavingFileEventArgs"/></param>
 protected virtual void OnSavingFile(SavingFileEventArgs e)
 {
     SavingFile?.Invoke(this, e);
 }