protected override void Create(){ m_dirmovement1 = new DirMovement(this); Plot1 = AddPlot(new PlotAttributes("ADX", 0, Color.Cyan, Color.Empty, 0, 0, true)); Plot2 = AddPlot(new PlotAttributes("ADXR", 0, Color.Magenta, Color.Empty, 0, 0, true)); }
protected override void Create() { m_dirmovement1 = new DirMovement(this); Plot1 = AddPlot(new PlotAttributes("ADX", 0, Color.Cyan, Color.Empty, 0, 0, true)); Plot2 = AddPlot(new PlotAttributes("ADXR", 0, Color.Magenta, Color.Empty, 0, 0, true)); }
private void Canvas_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Left) { switch (currentDir) { case DirMovement.UP: currentDir = DirMovement.LEFT; break; case DirMovement.LEFT: currentDir = DirMovement.DOWN; break; case DirMovement.DOWN: currentDir = DirMovement.RIGHT; break; case DirMovement.RIGHT: currentDir = DirMovement.UP; break; default: break; } } else if (e.Key == Key.Right) { switch (currentDir) { case DirMovement.UP: currentDir = DirMovement.RIGHT; break; case DirMovement.LEFT: currentDir = DirMovement.UP; break; case DirMovement.DOWN: currentDir = DirMovement.LEFT; break; case DirMovement.RIGHT: currentDir = DirMovement.DOWN; break; default: break; } } }
protected override void Create() { m_dirmovement1 = new DirMovement(this); Plot1 = AddPlot(new PlotAttributes("DMI+", 0, Color.Yellow, Color.Empty, 0, 0, true)); Plot2 = AddPlot(new PlotAttributes("DMI-", 0, Color.Blue, Color.Empty, 0, 0, true)); Plot3 = AddPlot(new PlotAttributes("ADX", 0, Color.Cyan, Color.Empty, 0, 0, true)); }