private void SaveSettingsFromControl(SoundTriggerControl control, SoundPlaySettings soundSettings) { soundSettings.SoundDirectory = control.SoundDirectoryPath; soundSettings.SoundFile = control.SoundFilePath; soundSettings.SoundVolume = control.VolumeLevel; soundSettings.PlaySoundType = control.SoundType; }
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(); }