private void popFlags() { if (!setup) return; foreach (CheckBox flag in chka) flag.Checked = flags[getFlagNum(flag)]; changeCustomFlag(null, null); }