Beispiel #1
0
 private void SaveSettingsFromControl(SoundTriggerControl control, SoundPlaySettings soundSettings)
 {
     soundSettings.SoundDirectory = control.SoundDirectoryPath;
     soundSettings.SoundFile      = control.SoundFilePath;
     soundSettings.SoundVolume    = control.VolumeLevel;
     soundSettings.PlaySoundType  = control.SoundType;
 }
Beispiel #2
0
        private void LoadSettingsToControl(SoundTriggerControl control, SoundPlaySettings soundSettings)
        {
            control.SoundDirectoryPath = soundSettings.SoundDirectory;
            control.SoundFilePath      = soundSettings.SoundFile;
            control.VolumeLevel        = soundSettings.SoundVolume;
            control.SoundType          = soundSettings.PlaySoundType;

            control.RefreshFields();
        }