private void SetupSetting() { this.setting = new Setting(); SettingManager settingManager = new SettingManager(); settingManager.Load(this.setting); }
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); }