Exemple #1
0
 private void askMeBtn_Click(object sender, EventArgs e)
 {
     vAssist = new VoiceAssistant();
     vAssist.SpeakMessage("Top left to Repeat");
     vAssist.SpeakMessage("Top right to Record");
     vAssist.SpeakMessage("Bottom left for previous letter");
     vAssist.SpeakMessage("Bottom right for next letter");
 }
        public GuessGame()
        {
            InitializeComponent();
            letters = getLetters();

            timerLabel.Text = Convert.ToString(seconds);
            timer1.Start();

            vAssist = new VoiceAssistant();
            vAssist.SpeakMessage("Time to guess the phonics !");
            Thread.Sleep(1000);
            game();
        }
        public GuessGame()
        {
            InitializeComponent();
            letters = getLetters();

            timerLabel.Text = Convert.ToString(seconds);
            timer1.Start();

            vAssist = new VoiceAssistant();
            vAssist.SpeakMessage("Time to guess the phonics !");
            Thread.Sleep(1000);
            game();
        }
Exemple #4
0
        public ReadAudioForm3(ReadPhaseForm readPhase, String lvl)
        {
            InitializeComponent();

            vAssist = new VoiceAssistant();
            vAssist.SpeakMessage("Say the Jolly phonic !");

            backButton                = this.backBtn;
            submitButton              = this.startBtn;
            this.readPhase            = readPhase;
            jollyPicBox.ImageLocation = "Class" + LoginForm.classSec + "_kidImages/" + lvl + ".jpg";
            this.jollyPicBox.SizeMode = PictureBoxSizeMode.Zoom;
            lvlStr = lvl;

            startBtn.Style = MetroColorStyle.Red;
            backBtn.Style  = MetroColorStyle.Purple;
        }
        public ReadPhaseForm()
        {
            InitializeComponent();

            String[] letterArr = getLevels(connStr);
            int numOfTiles = letterArr.Length-1;
            if (MainForm2.isCB == "Y")
            {
                generateGreyScale(numOfTiles, letterArr);
            }
            else
            {
                generateTiles(numOfTiles, letterArr);
            }

            vAssist = new VoiceAssistant();
            vAssist.SpeakMessage("Hey, Time to learn some phonics !");
        }
Exemple #6
0
        public ReadPhaseForm()
        {
            InitializeComponent();

            String[] letterArr  = getLevels(connStr);
            int      numOfTiles = letterArr.Length - 1;

            if (MainForm2.isCB == "Y")
            {
                generateGreyScale(numOfTiles, letterArr);
            }
            else
            {
                generateTiles(numOfTiles, letterArr);
            }

            vAssist = new VoiceAssistant();
            vAssist.SpeakMessage("Hey, Time to learn some phonics !");
        }
        public WritePhaseForm()
        {
            InitializeComponent();
            String alphaStr = "A B C D E F G H I J K L M N O P Q R S T U V W X Y Z";
            String[] letterArr = generateAlphabets(alphaStr);
            int numOfTiles = letterArr.Length;
            if (MainForm2.isCB == "Y")
            {
                generateGreyScale(numOfTiles, letterArr);
            }
            else
            {
                generateTiles(numOfTiles, letterArr);
            }
            kidName = MainForm2.kidName;

            vAssist = new VoiceAssistant();
            vAssist.SpeakMessage("Pick a letter and let's learn to write !");
        }
        public WriteForm(WritePhaseForm writePhase, String levelStr)
        {
            InitializeComponent();
            vAssist = new VoiceAssistant();
            vAssist.SpeakMessage("Write the letter, " + levelStr);
            //axShockwaveFlash2.Movie = @"C:\Users\Abdush Shakoor\Desktop\CSCI321\Flash Files\a.swf";
            //axShockwaveFlash2.Play();
            backBtn.Style = MetroColorStyle.Purple;
            this.levelStr = levelStr;
            letterLabel.Text = levelStr;
            this.writePhase = writePhase;

            letterArr = generateAlphabets(letters);

            WriteCanvas write = new WriteCanvas(this, levelStr);
            elementHost1.Child = write;
            this.Controls.Add(elementHost1);

            playFlash(@"C:\Pres_Proto\V2\MetroFrameworkDLLExample\MetroFrameworkDLLExample\bin\Debug\" + "Class" + LoginForm.classSec + @"_kidFlash\" + levelStr + ".swf");
        }
Exemple #9
0
        public WriteForm(WritePhaseForm writePhase, String levelStr)
        {
            InitializeComponent();
            vAssist = new VoiceAssistant();
            vAssist.SpeakMessage("Write the letter, " + levelStr);
            //axShockwaveFlash2.Movie = @"C:\Users\Abdush Shakoor\Desktop\CSCI321\Flash Files\a.swf";
            //axShockwaveFlash2.Play();
            backBtn.Style    = MetroColorStyle.Purple;
            this.levelStr    = levelStr;
            letterLabel.Text = levelStr;
            this.writePhase  = writePhase;

            letterArr = generateAlphabets(letters);

            WriteCanvas write = new WriteCanvas(this, levelStr);

            elementHost1.Child = write;
            this.Controls.Add(elementHost1);

            playFlash(@"C:\Pres_Proto\V2\MetroFrameworkDLLExample\MetroFrameworkDLLExample\bin\Debug\" + "Class" + LoginForm.classSec + @"_kidFlash\" + levelStr + ".swf");
        }
        public BlindModeForm()
        {
            InitializeComponent();
            this.Text = "Blind Mode";

            vAssist = new VoiceAssistant();
            vAssist.SpeakMessage("Blind Mode, Activated !");

            moveLeftBtn.Font = new Font("Serif", 25, FontStyle.Bold);
            //moveLeftBtn.Dock = DockStyle.Left;

            moveRightBtn.Font = new Font("Serif", 25, FontStyle.Bold);
            //moveRightBtn.Dock = DockStyle.Right;

            repeatBtn.Text = letters[curPos];
            repeatBtn.Font = new Font("Serif", 25, FontStyle.Bold);
            //repeatBtn.Dock = DockStyle.Top;

            recordBtn.Font = new Font("Serif", 25, FontStyle.Bold);
            //recordBtn.Dock = DockStyle.Bottom;
        }
Exemple #11
0
        public WritePhaseForm()
        {
            InitializeComponent();
            String alphaStr = "A B C D E F G H I J K L M N O P Q R S T U V W X Y Z";

            String[] letterArr  = generateAlphabets(alphaStr);
            int      numOfTiles = letterArr.Length;

            if (MainForm2.isCB == "Y")
            {
                generateGreyScale(numOfTiles, letterArr);
            }
            else
            {
                generateTiles(numOfTiles, letterArr);
            }
            kidName = MainForm2.kidName;

            vAssist = new VoiceAssistant();
            vAssist.SpeakMessage("Pick a letter and let's learn to write !");
        }
        public LoginForm()
        {
            //Thread t = new Thread(new ThreadStart(SplashLoadScreen));
            //t.Start();
            //Thread.Sleep(5000);
            //t.Abort();
            InitializeComponent();

            buttonPanel.Visible = false;
            loginPicBox.ImageLocation = @"C:\Pres_Proto\V2\MetroFrameworkDLLExample\logo2.png";
            this.loginPicBox.SizeMode = PictureBoxSizeMode.Zoom;

            retriveLoginImgFrmDB(connStr);
            ImageList imageList = kidImgList;
            imageList = getImages(dir);
            generateLoginButtons(size, imageList);
            //AddKidLoginButtons(size, imageList);
            this.BackColor = Color.FromArgb(255, 78, 32);
            vAssist = new VoiceAssistant();
            vAssist.SpeakMessage("Hey there, Which one is you ?");
        }
Exemple #13
0
        public BlindModeForm()
        {
            InitializeComponent();
            this.Text = "Blind Mode";

            vAssist = new VoiceAssistant();
            vAssist.SpeakMessage("Blind Mode, Activated !");

            moveLeftBtn.Font = new Font("Serif", 25, FontStyle.Bold);
            //moveLeftBtn.Dock = DockStyle.Left;

            moveRightBtn.Font = new Font("Serif", 25, FontStyle.Bold);
            //moveRightBtn.Dock = DockStyle.Right;

            repeatBtn.Text = letters[curPos];
            repeatBtn.Font = new Font("Serif", 25, FontStyle.Bold);
            //repeatBtn.Dock = DockStyle.Top;

            recordBtn.Font = new Font("Serif", 25, FontStyle.Bold);
            //recordBtn.Dock = DockStyle.Bottom;
        }
        public LoginForm()
        {
            //Thread t = new Thread(new ThreadStart(SplashLoadScreen));
            //t.Start();
            //Thread.Sleep(5000);
            //t.Abort();
            InitializeComponent();

            buttonPanel.Visible       = false;
            loginPicBox.ImageLocation = @"C:\Pres_Proto\V2\MetroFrameworkDLLExample\logo2.png";
            this.loginPicBox.SizeMode = PictureBoxSizeMode.Zoom;

            retriveLoginImgFrmDB(connStr);
            ImageList imageList = kidImgList;

            imageList = getImages(dir);
            generateLoginButtons(size, imageList);
            //AddKidLoginButtons(size, imageList);
            this.BackColor = Color.FromArgb(255, 78, 32);
            vAssist        = new VoiceAssistant();
            vAssist.SpeakMessage("Hey there, Which one is you ?");
        }
Exemple #15
0
        public MainForm2(String filename)
        {
            InitializeComponent();
            getData(connStr, "spelltable_db");
            getData(connStr, "image_db");
            getData(connStr, "audio_db");
            getData(connStr, "flash_db");
            getData(connStr, "wordbank_image");
            getData(connStr, "wordbank_audio");

            viewProgressBtn.TileTextFontSize   = MetroTileTextSize.Tall;
            viewProgressBtn.TileTextFontWeight = MetroTileTextWeight.Bold;
            exitTile.TileTextFontSize          = MetroTileTextSize.Tall;
            exitTile.TileTextFontWeight        = MetroTileTextWeight.Bold;

            loginPic.ImageLocation = filename;
            this.loginPic.SizeMode = PictureBoxSizeMode.Zoom;

            accessChildDatabaseV2(filename);

            if (isCB == "Y")
            {
                colorTest();
                convertIconsToGrayScale();
                exitTile.Style        = MetroColorStyle.Silver;
                viewProgressBtn.Style = MetroColorStyle.Silver;
            }
            else
            {
                exitTile.Style        = MetroFramework.MetroColorStyle.Red;
                viewProgressBtn.Style = MetroColorStyle.Green;
            }

            generateButtons();

            vAssist = new VoiceAssistant();
            vAssist.SpeakMessage("Welcome, Please select an option !");
        }
        public MainForm2(String filename)
        {
            InitializeComponent();
            getData(connStr, "spelltable_db");
            getData(connStr, "image_db");
            getData(connStr, "audio_db");
            getData(connStr, "flash_db");
            getData(connStr, "wordbank_image");
            getData(connStr, "wordbank_audio");

            viewProgressBtn.TileTextFontSize = MetroTileTextSize.Tall;
            viewProgressBtn.TileTextFontWeight = MetroTileTextWeight.Bold;
            exitTile.TileTextFontSize = MetroTileTextSize.Tall;
            exitTile.TileTextFontWeight = MetroTileTextWeight.Bold;

            loginPic.ImageLocation = filename;
            this.loginPic.SizeMode = PictureBoxSizeMode.Zoom;

            accessChildDatabaseV2(filename);

            if(isCB == "Y")
            {
                colorTest();
                convertIconsToGrayScale();
                exitTile.Style = MetroColorStyle.Silver;
                viewProgressBtn.Style = MetroColorStyle.Silver;
            }
            else
            {
                exitTile.Style = MetroFramework.MetroColorStyle.Red;
                viewProgressBtn.Style = MetroColorStyle.Green;
            }

            generateButtons();

            vAssist = new VoiceAssistant();
            vAssist.SpeakMessage("Welcome, Please select an option !");
        }
Exemple #17
0
        private void askQuestion(int a, int b, String sign)
        {
            String signWord = "";

            if (sign == "+")
            {
                signWord = "plus";
            }
            if (sign == "-")
            {
                signWord = "minus";
            }

            if (b > a)
            {
                int temp = b;
                b = a;
                a = temp;
            }

            vAssist = new VoiceAssistant();
            vAssist.SpeakMessage("What is " + a.ToString() + " " + signWord + " " + b.ToString() + " ?");
        }
 private void askMeBtn_Click(object sender, EventArgs e)
 {
     vAssist = new VoiceAssistant();
     vAssist.SpeakMessage("Top left to Repeat");
     vAssist.SpeakMessage("Top right to Record");
     vAssist.SpeakMessage("Bottom left for previous letter");
     vAssist.SpeakMessage("Bottom right for next letter");
 }
Exemple #19
0
 private void askQuestion(String word)
 {
     vAssist = new VoiceAssistant();
     vAssist.SpeakMessage("Okay, Spell " + word + "!");
 }
        public MainForm(String filename)
        {
            InitializeComponent();

            getData(connStr, "spelltable_db");
            getData(connStr, "image_db");
            getData(connStr, "audio_db");
            getData(connStr, "flash_db");
            getData(connStr, "wordbank_image");
            getData(connStr, "wordbank_audio");

            r = readTile;
            w = writeTile;
            e = exitTile;

            //MetroTile "look and feel" settings
            //----------------------------------------------------------//
            r.TileTextFontSize = MetroTileTextSize.Tall;
            r.TileTextFontWeight = MetroTileTextWeight.Bold;

            w.TileTextFontSize = MetroTileTextSize.Tall;
            w.TileTextFontWeight = MetroTileTextWeight.Bold;

            e.TileTextFontSize = MetroTileTextSize.Tall;
            e.TileTextFontWeight = MetroTileTextWeight.Bold;

            mathTile.TileTextFontSize = MetroTileTextSize.Tall;
            mathTile.TileTextFontWeight = MetroTileTextWeight.Bold;

            wordBankBtn.TileTextFontSize = MetroTileTextSize.Tall;
            wordBankBtn.TileTextFontWeight = MetroTileTextWeight.Bold;

            spellTile.TileTextFontSize = MetroTileTextSize.Tall;
            spellTile.TileTextFontWeight = MetroTileTextWeight.Bold;

            guessGameTile.TileTextFontSize = MetroTileTextSize.Tall;
            guessGameTile.TileTextFontWeight = MetroTileTextWeight.Bold;

            viewProgressBtn.TileTextFontSize = MetroTileTextSize.Tall;
            viewProgressBtn.TileTextFontWeight = MetroTileTextWeight.Bold;
            //----------------------------------------------------------//
            loginPic.ImageLocation = filename;
            accessChildDatabaseV2(filename);

            //Goes grayscale
            if (isCB == "Y")
            {
                colorTest();
                r.Style = MetroFramework.MetroColorStyle.Silver;
                w.Style = MetroFramework.MetroColorStyle.Silver;
                e.Style = MetroFramework.MetroColorStyle.Silver;
                mathTile.Style = MetroColorStyle.Silver;
                spellTile.Style = MetroColorStyle.Silver;
                wordBankBtn.Style = MetroColorStyle.Silver;
                guessGameTile.Style = MetroColorStyle.Silver;
                viewProgressBtn.Style = MetroColorStyle.Silver;
            }

            else
            {
                r.Style = MetroFramework.MetroColorStyle.Orange;
                w.Style = MetroFramework.MetroColorStyle.Yellow;
                e.Style = MetroFramework.MetroColorStyle.Red;
                mathTile.Style = MetroColorStyle.Purple;
                spellTile.Style = MetroColorStyle.Lime;
                wordBankBtn.Style = MetroColorStyle.Teal;
                guessGameTile.Style = MetroColorStyle.Brown;
                viewProgressBtn.Style = MetroColorStyle.Green;
            }

            this.loginPic.SizeMode = PictureBoxSizeMode.Zoom;
            vAssist = new VoiceAssistant();
            vAssist.SpeakMessage("Welcome, Please select an option !");
        }
        private void askQuestion(int a, int b, String sign)
        {
            String signWord="";
            if(sign == "+")
            {
                signWord = "plus";
            }
            if(sign == "-")
            {
                signWord = "minus";
            }

            if (b > a)
            {
                int temp = b;
                b = a;
                a = temp;
            }

            vAssist = new VoiceAssistant();
            vAssist.SpeakMessage("What is " + a.ToString() + " " + signWord + " " + b.ToString() + " ?");
        }
Exemple #22
0
        public MainForm(String filename)
        {
            InitializeComponent();

            getData(connStr, "spelltable_db");
            getData(connStr, "image_db");
            getData(connStr, "audio_db");
            getData(connStr, "flash_db");
            getData(connStr, "wordbank_image");
            getData(connStr, "wordbank_audio");

            r = readTile;
            w = writeTile;
            e = exitTile;

            //MetroTile "look and feel" settings
            //----------------------------------------------------------//
            r.TileTextFontSize   = MetroTileTextSize.Tall;
            r.TileTextFontWeight = MetroTileTextWeight.Bold;

            w.TileTextFontSize   = MetroTileTextSize.Tall;
            w.TileTextFontWeight = MetroTileTextWeight.Bold;

            e.TileTextFontSize   = MetroTileTextSize.Tall;
            e.TileTextFontWeight = MetroTileTextWeight.Bold;

            mathTile.TileTextFontSize   = MetroTileTextSize.Tall;
            mathTile.TileTextFontWeight = MetroTileTextWeight.Bold;

            wordBankBtn.TileTextFontSize   = MetroTileTextSize.Tall;
            wordBankBtn.TileTextFontWeight = MetroTileTextWeight.Bold;

            spellTile.TileTextFontSize   = MetroTileTextSize.Tall;
            spellTile.TileTextFontWeight = MetroTileTextWeight.Bold;

            guessGameTile.TileTextFontSize   = MetroTileTextSize.Tall;
            guessGameTile.TileTextFontWeight = MetroTileTextWeight.Bold;

            viewProgressBtn.TileTextFontSize   = MetroTileTextSize.Tall;
            viewProgressBtn.TileTextFontWeight = MetroTileTextWeight.Bold;
            //----------------------------------------------------------//
            loginPic.ImageLocation = filename;
            accessChildDatabaseV2(filename);

            //Goes grayscale
            if (isCB == "Y")
            {
                colorTest();
                r.Style               = MetroFramework.MetroColorStyle.Silver;
                w.Style               = MetroFramework.MetroColorStyle.Silver;
                e.Style               = MetroFramework.MetroColorStyle.Silver;
                mathTile.Style        = MetroColorStyle.Silver;
                spellTile.Style       = MetroColorStyle.Silver;
                wordBankBtn.Style     = MetroColorStyle.Silver;
                guessGameTile.Style   = MetroColorStyle.Silver;
                viewProgressBtn.Style = MetroColorStyle.Silver;
            }

            else
            {
                r.Style               = MetroFramework.MetroColorStyle.Orange;
                w.Style               = MetroFramework.MetroColorStyle.Yellow;
                e.Style               = MetroFramework.MetroColorStyle.Red;
                mathTile.Style        = MetroColorStyle.Purple;
                spellTile.Style       = MetroColorStyle.Lime;
                wordBankBtn.Style     = MetroColorStyle.Teal;
                guessGameTile.Style   = MetroColorStyle.Brown;
                viewProgressBtn.Style = MetroColorStyle.Green;
            }

            this.loginPic.SizeMode = PictureBoxSizeMode.Zoom;
            vAssist = new VoiceAssistant();
            vAssist.SpeakMessage("Welcome, Please select an option !");
        }
 private void askQuestion(String word)
 {
     vAssist = new VoiceAssistant();
     vAssist.SpeakMessage("Okay, Spell " + word + "!");
 }
        public ReadAudioForm3(ReadPhaseForm readPhase, String lvl)
        {
            InitializeComponent();

            vAssist = new VoiceAssistant();
            vAssist.SpeakMessage("Say the Jolly phonic !");

            backButton = this.backBtn;
            submitButton = this.startBtn;
            this.readPhase = readPhase;
            jollyPicBox.ImageLocation = "Class" + LoginForm.classSec + "_kidImages/" + lvl + ".jpg";
            this.jollyPicBox.SizeMode = PictureBoxSizeMode.Zoom;
            lvlStr = lvl;

            startBtn.Style = MetroColorStyle.Red;
            backBtn.Style = MetroColorStyle.Purple;
        }