protected virtual void IOItem_MouseLeaveHandler(object sender, RoutedEventArgs e) { ListViewItem listViewItem = sender as System.Windows.Controls.ListViewItem; IExperiment experiment; if (TryFindExperiment(listViewItem, out experiment)) { ExperimentHelper.ClearHighlightIOInExperiment(experiment); } }
private void SelectionHandleChanged(object sender, EventArgs e) { Gtk.NodeSelection selection = (Gtk.NodeSelection)sender; ExperimentHelper.ClearHighlightIOInExperiment(m_experimentOwner); //selected node maybe null if the moust moved out from the tree view, and selection change to nothing if (selection.SelectedNode != null) { IOItemNode item = (IOItemNode)selection.SelectedNode; ExperimentHelper.HighlightIOInExperiment(m_experimentOwner, item.MappedTo); } }
private void RefreshIOHighlightInExperiment(string mapping) { ExperimentHelper.ClearHighlightIOInExperiment(m_experimentOwner); ExperimentHelper.HighlightIOInExperiment(m_experimentOwner, mapping); }