/// <summary> /// Shows the Bar Explorer tool. /// </summary> private void ShowBarExplorer() { var barExplorer = new BarExplorer(Data.FirstBar); barExplorer.ShowDialog(); }
/// <summary> /// Shows the Bar Explorer /// </summary> private void PnlPriceMouseDoubleClick(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; var be = new BarExplorer(selectedBar); be.ShowDialog(); } } }
/// <summary> /// Shows the Bar Explorer /// </summary> private void ShowBarExplorer() { var barExplorer = new BarExplorer(SelectedBarNumber); barExplorer.ShowDialog(); }