protected virtual void OnSaving(XmlDocument obj) { var handler = Saving; if (handler != null) handler(obj); }