예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
 private void RefreshIOHighlightInExperiment(string mapping)
 {
     ExperimentHelper.ClearHighlightIOInExperiment(m_experimentOwner);
     ExperimentHelper.HighlightIOInExperiment(m_experimentOwner, mapping);
 }