private void btnGROUPentryRemove_Click(object sender, EventArgs e) { Info.GROUP group = (Info.GROUP)info.block[5].entries[(int)numericGROUPrecord.Value]; Info.GROUP.Subgroup[] entries = new Info.GROUP.Subgroup[--group.nCount]; for (int i = 0, j = 0; i < group.subgroup.Length; i++) { if (i == numericGROUPcurrentSubgroup.Value) { continue; } entries[j++] = group.subgroup[i]; } group.subgroup = entries; info.block[5].entries[(int)numericGROUPrecord.Value] = group; ReadInfo(); }
private void btnGROUPentryAdd_Click(object sender, EventArgs e) { Info.GROUP group = (Info.GROUP)info.block[5].entries[(int)numericGROUPrecord.Value]; Info.GROUP.Subgroup[] entries = new Info.GROUP.Subgroup[++group.nCount]; if (group.subgroup is Info.GROUP.Subgroup[]) { Array.Copy(group.subgroup, 0, entries, 0, group.subgroup.Length); } entries[entries.Length - 1] = new Info.GROUP.Subgroup(); group.subgroup = entries; info.block[5].entries[(int)numericGROUPrecord.Value] = group; numericGROUPcurrentSubgroup.Maximum = group.nCount - 1; numericGROUPcurrentSubgroup.Value = numericGROUPcurrentSubgroup.Maximum; ReadInfo(); }
private void btnGROUPentryAdd_Click(object sender, EventArgs e) { Info.GROUP group = (Info.GROUP)info.block[5].entries[(int)numericGROUPrecord.Value]; Info.GROUP.Subgroup[] entries = new Info.GROUP.Subgroup[++group.nCount]; if (group.subgroup is Info.GROUP.Subgroup[]) Array.Copy(group.subgroup, 0, entries, 0, group.subgroup.Length); entries[entries.Length - 1] = new Info.GROUP.Subgroup(); group.subgroup = entries; info.block[5].entries[(int)numericGROUPrecord.Value] = group; numericGROUPcurrentSubgroup.Maximum = group.nCount - 1; numericGROUPcurrentSubgroup.Value = numericGROUPcurrentSubgroup.Maximum; ReadInfo(); }
private void btnGROUPentryRemove_Click(object sender, EventArgs e) { Info.GROUP group = (Info.GROUP)info.block[5].entries[(int)numericGROUPrecord.Value]; Info.GROUP.Subgroup[] entries = new Info.GROUP.Subgroup[--group.nCount]; for (int i = 0, j = 0; i < group.subgroup.Length; i++) { if (i == numericGROUPcurrentSubgroup.Value) continue; entries[j++] = group.subgroup[i]; } group.subgroup = entries; info.block[5].entries[(int)numericGROUPrecord.Value] = group; ReadInfo(); }