コード例 #1
0
        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;
        }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
 public void Setup(CoinsPileViewItem pile)
 {
     this._pile = pile;
     this._button.Text = string.Format("Внести\n{0}", this._pile.NominalStr);
 }