Example #1
0
 /// <summary>
 /// Update the playlist with the selection.
 /// </summary>
 private void ProjectPanel_SelectionChanged(ProjectPanel sender, EventArgs e)
 {
     mPlaylist.Clear();
     foreach (Selectable s in ProjectPanel.Selected)
     {
         if (s.Node != null)
         {
             ChannelsProperty chprop = (ChannelsProperty)s.Node.getProperty(typeof(ChannelsProperty));
             if (chprop != null)
             {
                 ManagedAudioMedia media = chprop.getMedia(ProjectPanel.Project.AudioChannel) as ManagedAudioMedia;
                 if (media != null)
                 {
                     mPlaylist.Add(media.getMediaData());
                 }
             }
         }
     }
     UpdateButtonsState();
 }
Example #2
0
 public AudioBlock()
 {
     InitializeComponent();
     panel    = null;
     Selected = false;
 }
Example #3
0
 public DummyBlock()
 {
     InitializeComponent();
     Selected = false;
     panel    = null;
 }
Example #4
0
 private void projectPanel_SelectionChanged(UserControls.ProjectPanel projectPanel, EventArgs e)
 {
     importFileToolStripMenuItem.Enabled = projectPanel.Selected.Count > 0;
 }