public void Setup(CoinsPileViewItem pile)
        {
            this._pile = pile;
            this._nominal.Text = string.Format("{0}", this._pile.NominalStr);
            this.UpdateView();

            this._pile.Source.CountChanged += _pile_CountChanged;
        }
        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if(disposing)
            {
                if(this._pile != null)
                {
                    this._pile.Source.CountChanged -= _pile_CountChanged;
                    this._pile = null;
                }
            }

            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
 public void Setup(CoinsPileViewItem pile)
 {
     this._pile = pile;
     this._button.Text = string.Format("Внести\n{0}", this._pile.NominalStr);
 }