public void Buy(GrowButtons.GrowButton grButton) { this.waitedButton = grButton; if (this.waitedButton != null) { this.waitedButton.WaitForGrow(); } }
public virtual bool AddGrowButton(GrowButtons.GrowButton grButton) { if (!this.Add(grButton)) return false; grButton.Clicked += new EventHandler(this.GrowButtonChoose); return true; }
public virtual bool AddGrowButton(GrowButtons.GrowButton grButton) { if (this.listControl.Count >= MaxItem) return false; if (!this.Add(grButton)) return false; grButton.Clicked += new EventHandler(this.GrowButtonClickWhenChoosing); return true; }
public virtual void RemoveGrowButton(GrowButtons.GrowButton grButton) { this.RemoveControl(grButton); grButton.Clicked -= new EventHandler(this.GrowButtonClickWhenChoosing); }