private void addEntry_Click(object sender, EventArgs e) { InitiativeEntry i = new InitiativeEntry(InitName.Text, Convert.ToInt32(InitVal.Text), removeInitiativeEntry); initiatives.Add(i); i.Parent = InitTrackPanel; }
private void addMobs_Click(object sender, EventArgs e) { InitTrackPanel.Hide(); foreach (IMobDisplayBlock ms in mobPanels) { InitiativeEntry i = new InitiativeEntry(ms.Mob, removeInitiativeEntry); i.ForeColor = InitiativeForeColour; i.BackColor = InitiativeBackColour; initiatives.Add(i); i.Parent = InitTrackPanel; } InitTrackPanel.PerformLayout(); InitTrackPanel.Show(); }
private void removeInitiativeEntry(InitiativeEntry i) { initiatives.Remove(i); i.Dispose(); }