/// <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); } }
public static void UpdateRecentExperimentList(string pListLocation, string pExperimentFile) { RecentExperimentList list = LoadRecentExperimentListFromXML(pListLocation); RecentExperimentReference newRef = new RecentExperimentReference(pExperimentFile); if (list.Contains(newRef)) { list.Remove(newRef); } list.Add(newRef); SaveRecentExperimentListToXML(list, pListLocation); }
public RecentExperimentMenuItem(RecentExperimentReference recentExperimentReference) : base(recentExperimentReference.Filename) { m_recerentExperimentReference = recentExperimentReference; }
private void RenderFileName(TreeViewColumn column, CellRenderer cell, TreeModel model, TreeIter iter) { RecentExperimentReference experimentReference = (RecentExperimentReference)model.GetValue(iter, 1); (cell as CellRendererText).Text = experimentReference.Filename; }