| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- //----------------------------------------------------------------
- //Module Name: $safeprojectname$
- //Purpose:
- //CopyRight: Muchinfo
- //History:
- //----------------------------------------------------------------
- //DateTime 2016/4/19 10:29:09
- //Author
- //Description Create
- //----------------------------------------------------------------
- using GalaSoft.MvvmLight;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.ComponentModel;
- using Muchinfo.MTPClient.Data.Helper;
- namespace Muchinfo.MTPClient.Data.Model.Account
- {
- public class FundsDetails : ViewModelBase
- {
- private eTradeMode _marketType;
- /// <summary>
- /// 市场类型
- /// </summary>
- public eTradeMode MarketType
- {
- get { return _marketType; }
- set
- {
- Set(() => MarketType, ref _marketType, value);
- RaisePropertyChanged(() => MarketTypeDisplay);
- //if (MarketType == eTradeMode.AmountSum)
- //{
- //}
- }
- }
- /// <summary>
- /// Gets the market type display.
- /// </summary>
- /// <value>The market type display.</value>
- public string MarketTypeDisplay
- {
- get
- {
- return _marketType.Discription();
- }
- }
- private ObservableCollection<FundsDetails> items;
- public ObservableCollection<FundsDetails> Items
- {
- get
- {
- if (this.items == null)
- {
- this.items = new ObservableCollection<FundsDetails>();
- }
- return this.items;
- }
- set
- {
- if (value != this.items)
- {
- this.items = value;
- this.OnPropertyChanged("Items");
- }
- }
- }
- protected virtual void OnPropertyChanged(PropertyChangedEventArgs args)
- {
- PropertyChangedEventHandler handler = this.PropertyChanged;
- if (handler != null)
- {
- handler(this, args);
- }
- }
- private void OnPropertyChanged(string propertyName)
- {
- this.OnPropertyChanged(new PropertyChangedEventArgs(propertyName));
- }
- public event PropertyChangedEventHandler PropertyChanged;
- #region 资管重构
- /// <summary>
- /// The _funds account
- /// </summary>
- private FundsAccount _fundsAccount;
- /// <summary>
- /// Gets or sets the funds account.
- /// </summary>
- /// <value>The funds account.</value>
- public FundsAccount FundsAccount
- {
- get { return _fundsAccount; }
- set
- {
- Set(() => FundsAccount, ref _fundsAccount, value);
- }
- }
- #endregion
- }
- }
|