Пример #1
0
 private void buttonAdd_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         StreamInfo           si   = new StreamInfo();
         EditStreamInfoWindow esiw = new EditStreamInfoWindow(si);
         esiw.ShowDialog();
         if (esiw.DialogResult == true)
         {
             mainWindow.DemuxedStreams.streams.Add(esiw.streamInfo);
             UpdateDemuxedStreams();
         }
     }
     catch (Exception)
     {
     }
 }
Пример #2
0
 private void listBoxDemuxedStreams_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     try
     {
         int index = listBoxDemuxedStreams.SelectedIndex;
         if (index > -1)
         {
             EditStreamInfoWindow esiw = new EditStreamInfoWindow(mainWindow.DemuxedStreams.streams[index]);
             esiw.ShowDialog();
             if (esiw.DialogResult == true)
             {
                 mainWindow.DemuxedStreams.streams[index] = new StreamInfo(esiw.streamInfo);
                 UpdateDemuxedStreams();
                 listBoxDemuxedStreams.SelectedIndex = index;
             }
         }
     }
     catch (Exception)
     {
     }
 }
Пример #3
0
 private void buttonAdd_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         StreamInfo si = new StreamInfo();
         EditStreamInfoWindow esiw = new EditStreamInfoWindow(si);
         esiw.ShowDialog();
         if (esiw.DialogResult == true)
         {
             mainWindow.DemuxedStreams.streams.Add(esiw.streamInfo);
             UpdateDemuxedStreams();
         }
     }
     catch (Exception)
     {
     }
 }
Пример #4
0
 private void listBoxDemuxedStreams_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     try
     {
         int index = listBoxDemuxedStreams.SelectedIndex;
         if (index > -1)
         {
             EditStreamInfoWindow esiw = new EditStreamInfoWindow(mainWindow.DemuxedStreams.streams[index]);
             esiw.ShowDialog();
             if (esiw.DialogResult == true)
             {
                 mainWindow.DemuxedStreams.streams[index] = new StreamInfo(esiw.streamInfo);
                 UpdateDemuxedStreams();
                 listBoxDemuxedStreams.SelectedIndex = index;
             }
         }
     }
     catch (Exception)
     {
     }
 }