Exemplo n.º 1
0
        /// <summary>
        /// Reset this Processor.
        /// </summary>
        public void Reset()
        {
            mColDefs   = null;
            mRowHeight = -1;

            Rows.Dispose();
        }
        private void InitializeGrid(Account account)
        {
            if (_account != null && Rows != null)
            {
                Rows.Dispose();
            }
            _account = account;
            _account.Transactions.EnsureCollectionLoaded();
            Rows = new TransformingObservableCollection <Transaction, TransactionGridRowViewModel>(
                _account.Transactions,
                (transaction) =>
            {
                var row              = new TransactionGridRowViewModel(this.Columns, this.SubTransactionColumns, transaction, _model);
                row.PropertyChanged += Row_PropertyChanged;
                return(row);
            },
                (transformed) =>
            {
                transformed.Dispose();
                transformed.PropertyChanged -= Row_PropertyChanged;
            });

            Rows.ReturnEmptyOnEmuerate = true;

            SortRows();
        }
 public virtual void Dispose()
 {
     Rows.Dispose();
 }
Exemplo n.º 4
0
 public void Dispose()
 {
     Rows.Dispose();
     Columns.Dispose();
 }