Beispiel #1
0
 /// <summary>
 /// Opens the NodeViewer for the currently selected node. Runs play
 /// if the viewer wants the currently selected node to be played.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void infoNodeMenuItem_Click(object sender,
                                     EventArgs e)
 {
     if (nodeListView.SelectedIndices.Count > 0)
     {
         AVM.NodeViewer viewer = new AVM.NodeViewer(
             nodes[nodeListView.SelectedIndices[0]]);
         viewer.ShowDialog();
         if (viewer.Play)
         {
             playNodeMenuItem_Click(sender, e);
         }
     }
 }
Beispiel #2
0
 /// <summary>
 /// If DoublClickPlay is enabled then this will just play a video.
 /// If not then it will just display a NodeViewer.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void nodeListView_DoubleClick(object sender,
                                       EventArgs e)
 {
     if (Properties.Settings.Default.DoubleClickPlay)
     {
         playSelectedNode();
     }
     else
     if (nodeListView.SelectedIndices.Count > 0)
     {
         AVM.NodeViewer viewer = new AVM.NodeViewer(
             nodes[nodeListView.SelectedIndices[0]]);
         viewer.ShowDialog();
         if (viewer.Play)
         {
             playSelectedNode();
         }
     }
 }