public void InitCrFeedback() { if (this.objCrFeedback != null) { return; //we've already loaded this. } this.objCrFeedback = new CrFeedback(); this.crFeedbackTxtScale.Text = "0.915"; crFeedbackSclBar.Value = 91; this.crFeedbackTxtShift.Text = "300"; crFeedbackShiftBar.Value = 50; // look for demo string strDemoLoc = null; if (File.Exists("cisco.wav")) { strDemoLoc = "cisco.wav"; } if (File.Exists("..\\..\\samples\\cisco.wav")) { strDemoLoc = "..\\..\\samples\\cisco.wav"; } if (strDemoLoc != null) { this.objCrFeedback.SetAudioFile(new WaveAudio(strDemoLoc)); this.crFeedbackLblWavFile.Text = "cisco.wav"; this.crFeedback_btnPlay.Enabled = true; } else { this.crFeedback_btnPlay.Enabled = false; this.CrFeedback_btnOpen.Focus(); } }
public void InitCrFeedback() { if (this.objCrFeedback != null) return; //we've already loaded this. this.objCrFeedback = new CrFeedback(); this.crFeedbackTxtScale.Text = "0.915"; crFeedbackSclBar.Value = 91; this.crFeedbackTxtShift.Text = "300"; crFeedbackShiftBar.Value = 50; // look for demo string strDemoLoc = null; if (File.Exists("cisco.wav")) strDemoLoc = "cisco.wav"; if (File.Exists("..\\..\\samples\\cisco.wav")) strDemoLoc = "..\\..\\samples\\cisco.wav"; if (strDemoLoc != null) { this.objCrFeedback.SetAudioFile(new WaveAudio(strDemoLoc)); this.crFeedbackLblWavFile.Text = "cisco.wav"; this.crFeedback_btnPlay.Enabled = true; } else { this.crFeedback_btnPlay.Enabled = false; this.CrFeedback_btnOpen.Focus(); } }