private PnlPrice_MouseDoubleClick ( object sender, MouseEventArgs e ) : void | ||
sender | object | |
e | MouseEventArgs | |
return | void |
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;
}