private void B_ApplyWork_Click(object sender, EventArgs e) { var index = CB_Stats.SelectedIndex; SAV.SetWork(index, (int)NUD_Stat.Value); Origin.Edited = true; }
/// <summary> /// Writes all of the updated event values back to the block. /// </summary> public void Save() { foreach (var g in Work) { foreach (var item in g.Vars) { var val = ((EventWork <T>)item).Value; Block.SetWork(item.RawIndex, val); } } foreach (var g in Flag) { foreach (var item in g.Vars) { var val = ((EventFlag)item).Flag; Block.SetFlag(item.RawIndex, val); } } }