public void check(TextBox[,] txtar) { Features obj = new Features(); obj.check(txtar, save, var); }
public void submit(TextBox[,] txtar) { Features obj = new Features(); if (obj.check(txtar, save, var)) { for (int i = 1000; i <= 6000; i = i + 1000) System.Console.Beep(i, 100); for (int i = 6000; i >= 1000; i = i - 1000) System.Console.Beep(i, 100); MessageBox.Show("Congratulations!!! You won the game!!!"); } else { for (int i = 1000; i <= 6000; i = i + 1000) System.Console.Beep(i, 100); for (int i = 6000; i >= 1000; i = i - 1000) System.Console.Beep(i, 100); MessageBox.Show("You lose the game. Better luck next time!!!"); } }