Example #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;
                }
            }
        }
Example #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;
        }
        /// <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();
        }
        // Updates the balance chart.
        private void UpdateBalanceChart()
        {
            if (!isChartRecalculation)
            {
                return;
            }

            BalanceChart.SetChartData();
            BalanceChart.InitChart();
            BalanceChart.Invalidate();
        }
        /// <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>
        /// 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();
        }
 private void UpdateChart()
 {
     BalanceChart.SetChartData();
     BalanceChart.InitChart();
     BalanceChart.Invalidate();
 }