private void SaveData(object sender, EventArgs e) { if (manualChanged == false) { TActionInstantEnableBGM myAction = (TActionInstantEnableBGM)this.action; myAction.enabled = chkEnabled.Checked; base.SaveData(); } }
public override void LoadData() { // set manualChanged flag manualChanged = true; // load action data TActionInstantEnableBGM myAction = (TActionInstantEnableBGM)this.action; chkEnabled.Checked = myAction.enabled; // clear mnualChanged flag manualChanged = false; }