private void B_EditVillagerFlags_Click(object sender, EventArgs e) { var v = Villagers[VillagerIndex]; var flags = v.GetEventFlagsSave(); using var editor = new VillagerFlagEditor(flags); if (editor.ShowDialog() == DialogResult.OK) { v.SetEventFlagsSave(flags); } }
private void B_EditVillagerFlags_Click(object sender, EventArgs e) { var v = SAV.Main.GetVillager(VillagerIndex); var flags = v.GetEventFlagsSave(); using var editor = new VillagerFlagEditor(flags); if (editor.ShowDialog() != DialogResult.OK) { return; } v.SetEventFlagsSave(flags); SAV.Main.SetVillager(v, VillagerIndex); }