/// <summary>User has clicked the legend.</summary> /// <param name="sender">Sender of event</param> /// <param name="e">Event arguments</param> private void OnLegendClick(object sender, LegendClickArgs e) { LegendPresenter presenter = new LegendPresenter(this); currentPresenter = presenter; LegendView view = new LegendView(); graphView.ShowEditorPanel(view); presenter.Attach(graph, view, explorerPresenter); }
/// <summary>User has clicked the legend.</summary> /// <param name="sender">Sender of event</param> /// <param name="e">Event arguments</param> private void OnLegendClick(object sender, LegendClickArgs e) { if (currentPresenter != null) { currentPresenter.Detach(); } LegendPresenter presenter = new LegendPresenter(this); currentPresenter = presenter; LegendView view = new LegendView(graphView as GraphView); graphView.ShowEditorPanel(view.MainWidget, "Legend options"); presenter.Attach(graph, view, explorerPresenter); }
/// <summary>User has clicked the legend.</summary> /// <param name="sender">Sender of event</param> /// <param name="e">Event arguments</param> private void OnLegendClick(object sender, LegendClickArgs e) { if (currentPresenter != null) currentPresenter.Detach(); LegendPresenter presenter = new LegendPresenter(this); currentPresenter = presenter; LegendView view = new LegendView(graphView as GraphView); graphView.ShowEditorPanel(view.MainWidget, "Legend options"); presenter.Attach(graph, view, explorerPresenter); }