void frm_Save(object sender, ExportTocEventArgs e) { Save(e.XML); if (e.CreateHtmlTOC) { HtmlTOCDocument doc = new HtmlTOCDocument(NewNavMap); doc.UpdateFile(); } e.Message = SaveMessage; }
//The event-invoking method that derived classes can override. protected virtual void OnSave(ExportTocEventArgs e) { // Make a temporary copy of the event to avoid possibility of // a race condition if the last subscriber unsubscribes // immediately after the null check and before the event is raised. EventHandler <ExportTocEventArgs> handler = Save; if (handler != null) { handler(this, e); SetStatus(e.Message); } }
//The event-invoking method that derived classes can override. protected virtual void OnSave(ExportTocEventArgs e) { // Make a temporary copy of the event to avoid possibility of // a race condition if the last subscriber unsubscribes // immediately after the null check and before the event is raised. EventHandler<ExportTocEventArgs> handler = Save; if (handler != null) { handler(this, e); SetStatus(e.Message); } }
private void frm_Save(object sender, ExportTocEventArgs e) { Save(e.XML); e.Message = SaveMessage; }