コード例 #1
0
        /// <summary>
        ///     Perform initializing
        /// </summary>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (CompactMode)
            {
                InfoPanel.Visible    = false;
                BalanceChart.Visible = false;
                LblProgress.Visible  = true;
                ChbAutoscan.Visible  = false;

                var width  = (int)(300 * Data.HDpiScale);
                var height = (int)(95 * Data.VDpiScale);
                ClientSize = new Size(width, height);
                TopMost    = true;

                StartLoading();
            }
            else
            {
                LblProgress.Visible = false;
                ChbAutoscan.Visible = true;
                BalanceChart.SetChartData();
                var width  = (int)(460 * Data.HDpiScale);
                var height = (int)(540 * Data.VDpiScale);
                ClientSize = new Size(width, height);
                if (!isTickDataFile)
                {
                    Height -= infoRowHeight;
                }
            }
        }
コード例 #2
0
        /// <summary>
        ///     Updates the chart and info panel.
        /// </summary>
        private void ShowScanningResult()
        {
            BalanceChart.SetChartData();
            BalanceChart.InitChart();
            BalanceChart.Invalidate();
            InfoPanel.Invalidate();

            ChbAutoscan.Visible = true;
            ChbTickScan.Visible = Configs.UseTickData || isTickDataFile;
        }
コード例 #3
0
        /// <summary>
        ///     Menu ShowPriceLineOnClick.
        /// </summary>
        protected override void ShowPriceLineOnClick(object sender, EventArgs e)
        {
            var toolStripMenuItem = (ToolStripMenuItem)sender;

            Configs.ShowPriceChartOnAccountChart = toolStripMenuItem.Checked;

            BalanceChart.SetChartData();
            BalanceChart.InitChart();
            BalanceChart.Invalidate();
        }
コード例 #4
0
        // Updates the balance chart.
        private void UpdateBalanceChart()
        {
            if (!isChartRecalculation)
            {
                return;
            }

            BalanceChart.SetChartData();
            BalanceChart.InitChart();
            BalanceChart.Invalidate();
        }
コード例 #5
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();
        }
コード例 #6
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();
        }
コード例 #7
0
 private void UpdateChart()
 {
     BalanceChart.SetChartData();
     BalanceChart.InitChart();
     BalanceChart.Invalidate();
 }