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