private void button2_Click(object sender, EventArgs e) { //remove aura if (cbAuraList.Items.Count > 22) { Aura[] reduce = new Aura[Auras.Length - 1]; Array.Copy(Auras, reduce, Auras.Length - 1); } cbAuraList.Items.Clear(); for (int A = 0; A < Auras.Length; A++) cbAuraList.Items.Add(A); }
private void button1_Click(object sender, EventArgs e) { //add aura Aura[] Expand = new Aura[Auras.Length + 1]; Array.Copy(Auras, Expand, Auras.Length); Auras = Expand; Auras[Auras.Length - 1].Color = new int[] { 0, 0, 0, 0, 0, 0, 0 }; cbAuraList.Items.Clear(); for (int A = 0; A < Auras.Length; A++) cbAuraList.Items.Add(A); }