private void OnOpenScheduleClick(object sender, EventArgs e) { var savingArgs = new ContentSavingEventArgs { SavingReason = ContentSavingReason.ScheduleChanging }; ContentEditManager<MediaScheduleChangeInfo>.ProcessContentEditChanges( Controller.Instance.ContentController.ActiveEditor, savingArgs); if (!savingArgs.Cancel) OpenSchedule(); }
private void OnFormMainClosing(object sender, FormClosingEventArgs e) { var savingArgs = new ContentSavingEventArgs { SavingReason = ContentSavingReason.AppClosing }; ContentEditManager<MediaScheduleChangeInfo>.ProcessContentEditChanges( Controller.Instance.ContentController.ActiveEditor, savingArgs); }