Esempio n. 1
0
        /// <summary>
        ///  Shows the Bar Explorer tool.
        /// </summary>
        void ShowBarExplorer()
        {
            Bar_Explorer barExplorer = new Bar_Explorer(Data.FirstBar);

            barExplorer.ShowDialog();

            return;
        }
        /// <summary>
        /// Shows the Bar Explorer
        /// </summary>
        void PnlJournal_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            Bar_Explorer barExplorer = new Bar_Explorer(selectedBar);

            barExplorer.ShowDialog();

            return;
        }
        /// <summary>
        ///  Shows the Bar Explorer tool.
        /// </summary>
        void ShowBarExplorer()
        {
            Bar_Explorer barExplorer = new Bar_Explorer(Data.FirstBar);
            barExplorer.ShowDialog();

            return;
        }
        /// <summary>
        /// Shows the Bar Explorer
        /// </summary>
        void PnlPrice_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            // Determines the shown bar.
            if (mouseXOld >= XLeft && mouseXOld <= XRight && mouseYOld >= YTop && mouseYOld <= YBottom)
            {
                // Moving inside the chart
                if (mouseX >= XLeft && mouseX <= XRight && mouseY >= YTop && mouseY <= YBottom)
                {
                    int selectedBar = (e.X - XLeft) / barPixels + firstBar;
                    Bar_Explorer be = new Bar_Explorer(selectedBar);
                    be.ShowDialog();
                }
            }

            return;
        }
        /// <summary>
        /// Shows the Bar Explorer
        /// </summary>
        void PnlJournal_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            Bar_Explorer barExplorer = new Bar_Explorer(selectedBar);
            barExplorer.ShowDialog();

            return;
        }