Пример #1
0
        public void ApplySettings(SlideSettings newSettings, PowerPointProcessor powerPointProcessor)
        {
            var args = new SlideSettingsChangingEventArgs();

            SettingsChanging?.Invoke(this, args);
            if (args.Cancel)
            {
                return;
            }
            SlideSettings = newSettings;
            if (powerPointProcessor.Connect())
            {
                powerPointProcessor.SetSlideSettings(SlideSettings);
            }
            SettingsChanged?.Invoke(this, EventArgs.Empty);
        }
Пример #2
0
 private void OnSlideFormatSettingsChanging(object sender, SlideSettingsChangingEventArgs e)
 {
     SaveData();
 }