//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(); }
//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(); }
//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; }