Exemplo n.º 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();
 }
Exemplo n.º 2
0
 public AudioBlock()
 {
     InitializeComponent();
     panel    = null;
     Selected = false;
 }
Exemplo n.º 3
0
 public DummyBlock()
 {
     InitializeComponent();
     Selected = false;
     panel    = null;
 }
Exemplo n.º 4
0
 private void projectPanel_SelectionChanged(UserControls.ProjectPanel projectPanel, EventArgs e)
 {
     importFileToolStripMenuItem.Enabled = projectPanel.Selected.Count > 0;
 }