///<summary> /// Fires the <see cref="SettingsChanged"/> event with the names of changeProperties ///</summary> ///<param name="settings"></param> ///<param name="changedProperties"></param> protected void FireSettingsChanged(T settings, List <string> changedProperties) { SettingsChanged.Fire(settings, new SettingsChangedEventArgs { ChangedProperties = changedProperties }); }
///<summary> /// Start the controller ///</summary> public void Start() { Form frm = _view as Form; if (frm != null) { HotBabeSettings settings = _settingsManager.LoadSettings(); _view.LoadSettings(settings); DialogResult dia = frm.ShowDialog(); if (dia == DialogResult.OK) { _settingsManager.SaveSettings(_view.Settings); SettingsChanged.Fire(this, new EventArgs <HotBabeSettings>(_view.Settings)); } } }