Example #1
0
        /// <summary>User has clicked a footer.</summary>
        /// <param name="sender">Sender of event</param>
        /// <param name="e">Event arguments</param>
        private void OnCaptionClick(object sender, EventArgs e)
        {
            TitlePresenter titlePresenter = new TitlePresenter();
            currentPresenter = titlePresenter;
            titlePresenter.ShowCaption = true;

            TitleView t = new TitleView();
            graphView.ShowEditorPanel(t);
            titlePresenter.Attach(graph, t, explorerPresenter);
        }
Example #2
0
        /// <summary>User has clicked a footer.</summary>
        /// <param name="sender">Sender of event</param>
        /// <param name="e">Event arguments</param>
        private void OnCaptionClick(object sender, EventArgs e)
        {
            if (currentPresenter != null)
                currentPresenter.Detach();
            TitlePresenter titlePresenter = new TitlePresenter();
            currentPresenter = titlePresenter;
            titlePresenter.ShowCaption = true;

            TitleView t = new TitleView(graphView as GraphView);
            graphView.ShowEditorPanel(t.MainWidget, "Title options");
            titlePresenter.Attach(graph, t, explorerPresenter);
        }