Ejemplo n.º 1
0
        void UpdateRecords(List <TransactionReport> reports)
        {
            if (reports.IsNullObj())
            {
                return;
            }

            StorePosition(true);

            _tabContainer.TabPages.Clear();


            for (int i = 0; i < reports.Count; i++)
            {
                var     report = reports[i];
                TabPage page   = new TabPage()
                {
                    Text = report.Name
                };
                _tabContainer.Controls.Add(page);
                TransactionGridControl control = new TransactionGridControl();
                control.Name = $"gridControl{i}";

                page.Controls.Add(control);
                control.Dock = DockStyle.Fill;
                control.DisplayTransactions(report.Transactions, _eventAggregator);
            }

            StorePosition(false);
        }
Ejemplo n.º 2
0
        void UpdateRecords(List <TransactionReport> reports)
        {
            _tabContainer.TabPages.Clear();

            foreach (var report in reports)
            {
                TabPage page = new TabPage()
                {
                    Text = report.Name
                };
                TransactionGridControl control = new TransactionGridControl();

                page.Controls.Add(control);
                control.Dock = DockStyle.Fill;
                control.DisplayTransactions(report.Transactions);
                _tabContainer.Controls.Add(page);
            }
        }