public void Activated(object state) { this.voiceRecorderState = (VoiceRecorderState)state; this.IsEnabled = true; this.IsAutoTuneEnabled = true; // coming into this view turns on autotune this.AttackTime = (int)this.voiceRecorderState.AutoTuneSettings.AttackTimeMilliseconds; foreach (var viewModelPitch in this.Pitches) { viewModelPitch.Selected = false; } foreach (var pitch in voiceRecorderState.AutoTuneSettings.AutoPitches) { this.Pitches.First(p => p.Note == pitch).Selected = true; } }
public void Activated(object state) { this.voiceRecorderState = (VoiceRecorderState)state; RenderFile(); }