private RepeatedSoundPanel CreateRepeatedSoundPanel()
        {
            RepeatedSoundPanel repeatedSoundPanel = new RepeatedSoundPanel();

            repeatedSoundPanel.AutoScroll = true;
            repeatedSoundPanel.Dock       = DockStyle.Fill;

            BindRepeatedSoundPanelEventsWithHandlers(repeatedSoundPanel);
            return(repeatedSoundPanel);
        }
 private void BindRepeatedSoundPanelEventsWithHandlers(RepeatedSoundPanel repeatedSoundPanel)
 {
     repeatedSoundPanel.SoundNameChanged += new EventHandler(repeatedSoundPanel_SoundNameChanged);
     repeatedSoundPanel.NameOfXmlParameterForVolumeChanged     += new EventHandler(repeatedSoundPanel_NameOfXmlParameterForVolumeChanged);
     repeatedSoundPanel.NameOfXmlParameterForFrequencyChanged  += new EventHandler(repeatedSoundPanel_NameOfXmlParameterForFrequencyChanged);
     repeatedSoundPanel.ValueOfXmlParameterForVolumeChanged    += new EventHandler(repeatedSoundPanel_ValueOfXmlParameterForVolumeChanged);
     repeatedSoundPanel.ValueOfXmlParameterForFrequencyChanged += new EventHandler(repeatedSoundPanel_ValueOfXmlParameterForFrequencyChanged);
     repeatedSoundPanel.SoundFileLocationChanged         += new EventHandler(repeatedSoundPanel_SoundFileLocationChanged);
     repeatedSoundPanel.TableOfValuesForVolumeChanged    += new EventHandler(repeatedSoundPanel_TableOfValuesForVolumeChanged);
     repeatedSoundPanel.TableOfValuesForFrequencyChanged += new EventHandler(repeatedSoundPanel_TableOfValuesForFrequencyChanged);
     repeatedSoundPanel.Play += new EventHandler(repeatedSoundPanel_Play);
     repeatedSoundPanel.Stop += new EventHandler(repeatedSoundPanel_Stop);
 }