Ejemplo n.º 1
0
 public void addToken(AbstractToken item)
 {
     if (!this.tokens.Contains(item))
     {
         this.tokens.Add(item);
     }
 }
Ejemplo n.º 2
0
 public void addToken(AbstractToken item)
 {
     if (item != null)
     {
         this.tokens.Add(item);
         this.nameOfTokensAtFire.Add(item.Name);
     }
 }
Ejemplo n.º 3
0
 public void deleteToken(AbstractToken token)
 {
     if (this.tokens.Contains(token))
     {
         this.tokens.Remove(token);
     }
 }
Ejemplo n.º 4
0
 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++;
 }