Beispiel #1
0
        public void pencilMarking(TextBox[,] txtar, Label lblPencilMark)
        {
            Features obj = new Features();
            switch (var)
            {
                case 0:
                    obj.pencilMarking(txtar, lblPencilMark, tt);
                    break;
                case 1:
                    obj.pencilMarkingX(txtar, lblPencilMark, tt);
                    break;
                case 2:
                    obj.pencilMarkingC(txtar, lblPencilMark, tt);
                    break;
                case 3:
                    obj.pencilMarking4(txtar, lblPencilMark, tt);
                    break;

            }
        }
Beispiel #2
0
 public void pencilMarkReset()
 {
     Features obj = new Features();
     obj.toolTipReset(tt);
 }
Beispiel #3
0
 public void check(TextBox[,] txtar)
 {
     Features obj = new Features();
     obj.check(txtar, save, var);
 }
Beispiel #4
0
 public void cheat(TextBox[,] txtar)
 {
     Features obj = new Features();
     obj.hint(txtar, save);
 }
Beispiel #5
0
 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!!!");
     }
 }
Beispiel #6
0
 public void showans(TextBox[,] txtar)
 {
     Features obj = new Features();
     obj.showanswer(txtar, save);
 }