private void B_ApplyFlag_Click(object sender, EventArgs e) { var index = (int)NUD_Flag.Value; SAV.SetFlag(index, c_CustomFlag.Checked); 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); } } }