Beispiel #1
0
 // Propagate selection upward
 private void SelectUp()
 {
     if (!Selected)
     {
         ProjectView view = Parent as ProjectView;
         if (view != null)
         {
             Selection = new NodeSelection(view, this.node);
             view.SelectFromBelow(this.selection);
         }
     }
 }
Beispiel #2
0
 private void layoutPanel_MouseClick(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         ProjectView view = Parent as ProjectView;
         if (view != null)
         {
             this.Selection = new TrackIndexSelection(view, this.node, trackLayout.IndexForX(e.X));
             this.trackLayout.Invalidate();
             view.SelectFromBelow(this.Selection);
         }
     }
 }