示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }