コード例 #1
0
 private void OnQueryPortfolioSuccessAction(PBPortfolioList PB)
 {
     //this.CreatePortfolios();
     PortfolioVMCollection.Clear();
     foreach (var portfolio in PB.Portfolio)
     {
         OnPortfolioUpdated(portfolio);
         OnPortfolioHedgeContracts(portfolio);
     }
 }
コード例 #2
0
        public void CreatePortfolio(string portfolio)
        {
            var portfolioList = new PBPortfolioList();

            portfolioList.Portfolio.Add(new PBPortfolio {
                Name = portfolio
            });

            MessageWrapper.SendMessage((uint)BusinessMessageID.MSG_ID_PORTFOLIO_NEW, portfolioList);
        }
コード例 #3
0
        public void CreatePortfolios(IEnumerable <PortfolioVM> portfolios)
        {
            var portfolioList = new PBPortfolioList();

            foreach (var portfolio in portfolios)
            {
                portfolioList.Portfolio.Add(new PBPortfolio {
                    Name = portfolio.Name, HedgeDelay = portfolio.Delay, Threshold = portfolio.Threshold
                });
            }

            MessageWrapper.SendMessage((uint)BusinessMessageID.MSG_ID_PORTFOLIO_NEW, portfolioList);
        }