コード例 #1
0
ファイル: AccountCenter.cs プロジェクト: damoye/QTS
 public void ChangeAccount(Account account)
 {
     this.Account.Update(account);
     MdAdapter.ChangeAccount();
     TradeAdapter.ChangeAccount();
     ConfigHelper.SaveConfig(MD_CONFIG_KEY, this.Account);
 }
コード例 #2
0
ファイル: AccountCenter.cs プロジェクト: damoye/QTS
 public void Init()
 {
     this.Account = ConfigHelper.GetConfig <Account>(MD_CONFIG_KEY);
     if (this.Account != null)
     {
         MdAdapter.ChangeAccount();
         TradeAdapter.ChangeAccount();
     }
 }