コード例 #1
0
 void AddTopicAudio(object sender, RoutedEventArgs e)
 {
     if (finalRounders.SelectedItem == null)
     {
         FinalRounders.FinalRoundIssue("Select the topic to import the audio of.");
         return;
     }
     if (finalRoundList.FileName == null)
     {
         FinalRounders.FinalRoundIssue("The final round file has to exist first. Export your work or import an existing final round file.");
         return;
     }
     if (audioBrowser.ShowDialog() == true)
     {
         selectedTopic.ImportTopicAudio(finalRoundList.FileName, audioBrowser.FileName);
     }
 }