private void SaveData(object sender, EventArgs e) { if (manualChanged == false) { TActionIntervalDelay myAction = (TActionIntervalDelay)this.action; myAction.duration = (long)nudDuration.Value; base.SaveData(); } }
public override void LoadData() { // set manualChanged flag manualChanged = true; // load action data TActionIntervalDelay myAction = (TActionIntervalDelay)this.action; nudDuration.Value = (decimal)myAction.duration; // clear mnualChanged flag manualChanged = false; }