/// <summary> /// Updates the chart. /// </summary> protected void UpdateBalanceChart(Balance_Chart_Unit[] balanceData, int balancePoints) { if (balanceChart.InvokeRequired) { balanceChart.BeginInvoke(new UpdateBalanceChartDelegate(UpdateBalanceChart), new object[] { balanceData, balancePoints }); } else { balanceChart.UpdateChartData(balanceData, balancePoints); balanceChart.RefreshChart(); } return; }
/// <summary> /// Initializes page Account. /// </summary> public void Initialize_PageAccount() { tabPageAccount.Name = "tabPageAccount"; tabPageAccount.Text = Language.T("Account"); tabPageAccount.ImageIndex = 3; tabPageAccount.BackColor = LayoutColors.ColorFormBack; balanceChart = new Balance_Chart(); balanceChart.Parent = tabPageAccount; balanceChart.Dock = DockStyle.Fill; balanceChart.UpdateChartData(Data.BalanceData, Data.BalanceDataPoints); balanceChart.Invalidate(); return; }