//----------------------------------------------------------------
//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;
///
/// 市场类型
///
public eTradeMode MarketType
{
get { return _marketType; }
set
{
Set(() => MarketType, ref _marketType, value);
RaisePropertyChanged(() => MarketTypeDisplay);
//if (MarketType == eTradeMode.AmountSum)
//{
//}
}
}
///
/// Gets the market type display.
///
/// The market type display.
public string MarketTypeDisplay
{
get
{
return _marketType.Discription();
}
}
private ObservableCollection items;
public ObservableCollection Items
{
get
{
if (this.items == null)
{
this.items = new ObservableCollection();
}
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 资管重构
///
/// The _funds account
///
private FundsAccount _fundsAccount;
///
/// Gets or sets the funds account.
///
/// The funds account.
public FundsAccount FundsAccount
{
get { return _fundsAccount; }
set
{
Set(() => FundsAccount, ref _fundsAccount, value);
}
}
#endregion
}
}