/// <summary>
        /// Initializes page Account.
        /// </summary>
        private void InitializePageAccount()
        {
            TabPageAccount.Name = "tabPageAccount";
            TabPageAccount.Text = Language.T("Account");
            TabPageAccount.ImageIndex = 3;
            TabPageAccount.BackColor = LayoutColors.ColorFormBack;

            _balanceChart = new BalanceChart {Parent = TabPageAccount, Dock = DockStyle.Fill};
            _balanceChart.UpdateChartData(Data.BalanceData, Data.BalanceDataPoints);
            _balanceChart.Invalidate();
        }
예제 #2
0
 /// <summary>
 /// Updates the chart.
 /// </summary>
 protected void UpdateBalanceChart(BalanceChartUnit[] balanceData, int balancePoints)
 {
     if (_balanceChart.InvokeRequired)
     {
         _balanceChart.BeginInvoke(new UpdateBalanceChartDelegate(UpdateBalanceChart),
                                   new object[] { balanceData, balancePoints });
     }
     else
     {
         _balanceChart.UpdateChartData(balanceData, balancePoints);
         _balanceChart.RefreshChart();
     }
 }
예제 #3
0
        /// <summary>
        /// Initializes page Account.
        /// </summary>
        private void InitializePageAccount()
        {
            TabPageAccount.Name       = "tabPageAccount";
            TabPageAccount.Text       = Language.T("Account");
            TabPageAccount.ImageIndex = 3;
            TabPageAccount.BackColor  = LayoutColors.ColorFormBack;

            _balanceChart = new BalanceChart {
                Parent = TabPageAccount, Dock = DockStyle.Fill
            };
            _balanceChart.UpdateChartData(Data.BalanceData, Data.BalanceDataPoints);
            _balanceChart.Invalidate();
        }