Example #1
0
 private void soundToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (FileIsOpen)
     {
         foreach (string path in GetSelectedSoundPaths())
         {
             SoundFile file = OpenedFile.Sounds.Find(x => x.Filepath == path);
             if (file != null)
             {
                 SoundSettingsForm form = new SoundSettingsForm(file);
                 if (form.ShowDialog() == DialogResult.OK)
                 {
                     form.UpdateSound(file);
                 }
             }
             UpdateSoundList();
         }
     }
 }
Example #2
0
 public void UpdateSound(SoundFile file)
 {
     file.Name        = SoundName;
     file.Description = SoundDescription;
     file.Filepath    = SoundPath;
 }
Example #3
0
 public SoundSettingsForm(SoundFile file)
 {
     SoundName        = file.Name;
     SoundDescription = file.Description;
     SoundPath        = file.Filepath;
 }