コード例 #1
0
        public MDIMain(DBInit db, IModelMapper mapper, frmPortfolio frmPortfolio, frmAddTrade frmAddTrade)
        {
            InitializeComponent();

            this.frmPortfolio = frmPortfolio;
            this.frmAddTrade  = frmAddTrade;

            ShowPortfolioForm(null, null);
        }
コード例 #2
0
        public frmPortfolio(IModelMapper mapper, frmAddTrade frmAddTrade
                            , ITickerService tickerSvc
                            , IPortfolioService portfolioSvc
                            , ITradeService tradeSvc
                            , IPnLReportService pnlReportSvc)
        {
            InitializeComponent();
            this.tickerSvc    = tickerSvc;
            this.portfolioSvc = portfolioSvc;
            this.tradeSvc     = tradeSvc;
            this.mapper       = mapper;
            this.frmAddTrade  = frmAddTrade;
            this.pnlReportSvc = pnlReportSvc;

            dtPnLAsOfDate.Value = new DateTime(2021, 04, 12);
        }