//Repeat the level public void repeatLevel(bool colorSetting) { var nextForm = new ReadAudioForm3(readPhase, lvlStr); nextForm.FormClosed += (s, args) => this.Close(); nextForm.setColorBlind(colorSetting); nextForm.Show(); }
private void CallWaveForm(ReadAudioForm3 raf, String lvlStr) { WaveForm wf = new WaveForm(raf, lvlStr); elementHost1.Child = wf; this.Controls.Add(elementHost1); }
private void callReadAudioForm(string currentLevel) { this.Hide(); ReadAudioForm3 read = new ReadAudioForm3(this, currentLevel); read.setColorBlind(isColorBlind); read.ShowDialog(); }
//If it's a new level public void newLevel(bool colorSetting) { //---save progress of the current level by marking, solved var nextForm = new ReadAudioForm3(readPhase, updateLevel(lvlStr)); nextForm.FormClosed += (s, args) => this.Close(); nextForm.setColorBlind(isColorBlind); nextForm.Show(); }
public WaveForm(ReadAudioForm3 read, String lvlStr) { InitializeComponent(); this.read = read; this.lvlStr = lvlStr; isColorBlind = read.isColorBlind; CountDownBlk.Text = string.Format("0{0}:{1}", time / 60, time % 60); startTimer(); startRecording(); }
private void callReadAudioForm(string currentLevel) { this.Hide(); ReadAudioForm3 read = new ReadAudioForm3(this,currentLevel); read.setColorBlind(isColorBlind); read.ShowDialog(); }