Exemplo n.º 1
0
 //If it's a new level
 public void newLevel(bool colorSetting)
 {
     this.Hide();
     var nextForm = new WriteForm(writePhase, updateLevel(levelStr));
     nextForm.FormClosed += (s, args) => this.Close();
     nextForm.setColorBlind(isColorBlind);
     nextForm.Show();
 }
Exemplo n.º 2
0
        //Repeat the level
        public void repeatLevel(bool colorSetting)
        {
            this.Hide();
            var nextForm = new WriteForm(writePhase, levelStr);

            nextForm.FormClosed += (s, args) => this.Close();
            nextForm.setColorBlind(colorSetting);
            nextForm.Show();
        }
Exemplo n.º 3
0
        //If it's a new level
        public void newLevel(bool colorSetting)
        {
            this.Hide();
            var nextForm = new WriteForm(writePhase, updateLevel(levelStr));

            nextForm.FormClosed += (s, args) => this.Close();
            nextForm.setColorBlind(isColorBlind);
            nextForm.Show();
        }
Exemplo n.º 4
0
        //Calls the WriteLetter_Test form i.e. you get to play this new level
        private void callWriteLetterForm(string currentLevel)
        {
            this.Hide();
            WriteForm write = new WriteForm(this, currentLevel);

            write.setColorBlind(isColorBlind);
            write.ShowDialog();
            //WriteLetter_Test writeTest = new WriteLetter_Test(this, currentLevel);
            //writeTest.setColorBlind(isColorBlind);
            //writeTest.Show();
        }
 public WriteCanvas(WriteForm write, String str)
 {
     InitializeComponent();
     this.write       = write;
     isColorBlind     = write.isColorBlind;
     this.levelStr    = str;
     inkDA            = new System.Windows.Ink.DrawingAttributes();
     inkDA.Color      = Colors.Black;
     inkDA.Height     = 10;
     inkDA.Width      = 10;
     inkDA.FitToCurve = false;
     inkCanvas.DefaultDrawingAttributes = inkDA;
 }
 public WriteCanvas(WriteForm write, String str)
 {
     InitializeComponent();
     this.write = write;
     isColorBlind = write.isColorBlind;
     this.levelStr = str;
     inkDA = new System.Windows.Ink.DrawingAttributes();
     inkDA.Color = Colors.Black;
     inkDA.Height = 10;
     inkDA.Width = 10;
     inkDA.FitToCurve = false;
     inkCanvas.DefaultDrawingAttributes = inkDA;
 }
Exemplo n.º 7
0
 //Repeat the level
 public void repeatLevel(bool colorSetting)
 {
     this.Hide();
     var nextForm = new WriteForm(writePhase, levelStr);
     nextForm.FormClosed += (s, args) => this.Close();
     nextForm.setColorBlind(colorSetting);
     nextForm.Show();
 }
Exemplo n.º 8
0
 //Calls the WriteLetter_Test form i.e. you get to play this new level
 private void callWriteLetterForm(string currentLevel)
 {
     this.Hide();
     WriteForm write = new WriteForm(this, currentLevel);
     write.setColorBlind(isColorBlind);
     write.ShowDialog();
     //WriteLetter_Test writeTest = new WriteLetter_Test(this, currentLevel);
     //writeTest.setColorBlind(isColorBlind);
     //writeTest.Show();
 }