Exemple #1
0
        ///<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));
                }
            }
        }