コード例 #1
0
        /// <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;
        }
コード例 #2
0
        /// <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;
        }
コード例 #3
0
        /// <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;
        }