Exemple #1
0
 public void ChangeAccount(Account account)
 {
     this.Account.Update(account);
     MdAdapter.ChangeAccount();
     TradeAdapter.ChangeAccount();
     ConfigHelper.SaveConfig(MD_CONFIG_KEY, this.Account);
 }
Exemple #2
0
 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;
 }
Exemple #3
0
 public void Init()
 {
     this.Account = ConfigHelper.GetConfig<Account>(MD_CONFIG_KEY);
     if (this.Account != null)
     {
         MdAdapter.ChangeAccount();
         TradeAdapter.ChangeAccount();
     }
 }