private void TrySave(string filename = null, Action callback = null) { filename ??= FileName; using Stream outputStream = new FileStream(filename, FileMode.Create); InternalObject.SaveXml(outputStream); _newCardDirty = false; FileName = filename; SaveToOriginal(); callback?.Invoke(); }