コード例 #1
0
        public BestWorstStocks(StockDataVisualizer parent)
        {
            this.parent = parent;
            InitializeComponent();
            this.bestperfGrid.DataSource  = bestPerformingStock;
            this.worstPerfGrid.DataSource = worstPerformingStock;
            var binding = new Binding("Text", bestPerformingStock, null);

            this.bestperfGrid.DataBindings.Add(binding);
            this.Activated += new EventHandler(BestWorstStocks_Activated);
        }
コード例 #2
0
        public StockAnalyzer(StockDataVisualizer form)
        {
            this.parent = form;
            InitializeComponent();
            GetRecommendation();
            this.recommendationView.DataSource = rStocks;
            var binding = new Binding("Text", rStocks, null);

            this.recommendationView.DataBindings.Add(binding);
            this.InputStockText.Validating += InputStockText_Validating;
            Logger.Instance.Log("StockAnalyzer instantiated...");
        }