//Copy Sound Setting Update public void UpdateCopySoundSettings(List<CommonSoundSetting> newSoundSettings) { if (newSoundSettings.Count <= 0) return; this.SoundSettings.Clear(); foreach (CommonSoundSetting commonSoundSetting in newSoundSettings) { SoundSetting soundSetting = new SoundSetting(commonSoundSetting); this.SoundSettings.Add(soundSetting); } }
public SoundSetting(CommonSoundSetting comonSoundSetting) { this.SoundType = comonSoundSetting.SoundType; this.SoundKey = comonSoundSetting.SoundKey; this.SoundPath = comonSoundSetting.SoundPath; this._OriginSoundSetting = this.Clone(); }
public void Initailize(CommonSettingsParameter commonSettingsParameter) { this.DealingOrderParameter = new DealingOrderParameter(commonSettingsParameter.DealingOrderParameter); this.SetValueSetting = new SetValueSetting(commonSettingsParameter.SetValueSetting); foreach (CommonSoundSetting comonSoundSetting in commonSettingsParameter.SoundSettings) { SoundSetting soundSetting = new SoundSetting(comonSoundSetting); this.SoundSettings.Add(soundSetting); } }