/// <summary> /// Called before menu drawn. /// </summary> /// <param name="plotContextMenu">The plot menu this item is a member of.</param> public override void OnPopup( PlotContextMenu plotContextMenu ) { this.MenuItem.Enabled = plotContextMenu.plotSurface2D_.xAxis1ZoomCache_ != null; }
/// <summary> /// /// </summary> /// <param name="plotContextMenu"></param> public void OnPopup( PlotContextMenu plotContextMenu ) { // do nothing. }
/// <summary> /// Called before menu drawn. /// </summary> /// <param name="plotContextMenu">The plot menu this item is a member of.</param> public override void OnPopup( PlotContextMenu plotContextMenu ) { this.MenuItem.Checked = plotContextMenu.plotSurface2D_.ShowCoordinates; }
public override void OnPopup(PlotContextMenu plotContextMenu) { if (!((BorePlot)((BorePlotContextMenu)plotContextMenu).plotSurface2D_).ShowWaveformPlot) MenuItem.Enabled = false; else MenuItem.Enabled = true; }