/// <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(); }
/// <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(); } }
/// <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(); }