Exemplo n.º 1
0
        private void SetupSetting()
        {
            this.setting = new Setting();

            SettingManager settingManager = new SettingManager();
            settingManager.Load(this.setting);
        }
Exemplo n.º 2
0
        private void settingButton_Click(object sender, EventArgs e)
        {
            if ( !this.initialized ) return;

            SettingForm form = new SettingForm();
            form.LoadFrom(this.setting);
            form.ShowDialog();
            form.SaveTo(this.setting);

            SettingManager settingManager = new SettingManager();
            settingManager.Save(this.setting);
        }