/// <summary> /// 触发账户资金变更事件。 /// </summary> /// <param name="args"></param> protected virtual void FireFundChanged(USeFund fundInfo) { if (fundInfo == null) { return; } USeFundChangedEventArgs args = new USeFundChangedEventArgs(fundInfo); Debug.WriteLine(string.Format("[{0}] fund changed.", args.FundInfo.AccountID)); EventHandler <USeFundChangedEventArgs> handel = this.OnFundChanged; if (handel != null) { handel(this, args); } }
/// <summary> /// 构造TradingAccountChangedEventArgs实例。 /// </summary> /// <param name="fundInfo">账户信息。</param> public USeFundChangedEventArgs(USeFund fundInfo) { this.FundInfo = fundInfo; }