//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();
 }
Beispiel #2
0
        private void CallWaveForm(ReadAudioForm3 raf, String lvlStr)
        {
            WaveForm wf = new WaveForm(raf, lvlStr);

            elementHost1.Child = wf;
            this.Controls.Add(elementHost1);
        }
Beispiel #3
0
        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();
 }
Beispiel #5
0
        //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();
        }
Beispiel #6
0
        //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();
 }
 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 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();
 }