public void ChangeAccount(Account account) { this.Account.Update(account); MdAdapter.ChangeAccount(); TradeAdapter.ChangeAccount(); ConfigHelper.SaveConfig(MD_CONFIG_KEY, this.Account); }
public void Update(Account account) { this.BrokerID = account.BrokerID; this.InvestorID = account.InvestorID; this.Password = account.Password; this.MDAddress = account.MDAddress; this.TDAddress = account.TDAddress; }
public void Init() { this.Account = ConfigHelper.GetConfig<Account>(MD_CONFIG_KEY); if (this.Account != null) { MdAdapter.ChangeAccount(); TradeAdapter.ChangeAccount(); } }