Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
        /// <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);
        }
Ejemplo n.º 4
0
        /// <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);
        }