public void addToken(AbstractToken item) { if (!this.tokens.Contains(item)) { this.tokens.Add(item); } }
public void addToken(AbstractToken item) { if (item != null) { this.tokens.Add(item); this.nameOfTokensAtFire.Add(item.Name); } }
public void deleteToken(AbstractToken token) { if (this.tokens.Contains(token)) { this.tokens.Remove(token); } }
private void addCustomTokenRow(AbstractItem parent, AbstractToken token, bool disabled) { this.tlpToken.RowStyles.Add(new RowStyle(SizeType.Absolute, MDIParent.PROPERTY_ROW_HEIGHT)); this.tlpToken.Controls.Add(ControlHelper.getPropertyLabel(token.Unid.ToString()), 0, this.tmpTokenPanelRowCount); this.tlpToken.Controls.Add(ControlHelper.getPropertyTextBox(token.Name, new EventHandler(tokenAndEventValueChanged), new PropertyTag(null, token, NetworkProperty.NAME), disabled), 1, this.tmpTokenPanelRowCount); this.tlpToken.Controls.Add(ControlHelper.getPropertyColorPanel(token.TokenColor, new EventHandler(tokenAndEventValueChanged), new PropertyTag(null, token, NetworkProperty.COLOR), disabled), 2, this.tmpTokenPanelRowCount); this.tlpToken.Controls.Add(ControlHelper.getPropertyButton("DEL", new EventHandler(tokenAndEventValueChanged), new PropertyTag(parent, token, NetworkProperty.DELETE), disabled), 3, this.tmpTokenPanelRowCount); this.tmpTokenPanelRowCount++; }