Beispiel #1
0
        /// <summary>
        /// Opens experiment when double clicked on the row
        /// </summary>
        /// <param name="source">Source.</param>
        /// <param name="args">Arguments.</param>
        private void OpenExperimentOnRowActivated(object source, RowActivatedArgs args)
        {
            TreeIter item;

            if (this.recentExperimentNodeView.Selection.GetSelected(out item))
            {
                RecentExperimentReference expRef = (RecentExperimentReference)this.recentExperimentNodeView.Model.GetValue(item, 1);
                OpenExperimentAction.OpenExperiment(expRef.FullPath, m_applicationContext);
            }
        }
Beispiel #2
0
        private void OpenExperiment(object sender, EventArgs e)
        {
            RecentExperimentMenuItem item = (RecentExperimentMenuItem)sender;

            OpenExperimentAction.OpenExperiment(item.RecentExperimentReference.FullPath, m_applicationContext);
        }