Exemplo n.º 1
0
 private void StopDialogue()
 {
     dialogue = false; // the dialogue is not completed yet
     InputPool = null; // clear it properly
     frame = null;
     lblFrame.Text = "";
     state = 0; // return to the idle state
 }
Exemplo n.º 2
0
        private void SelectFrame(string input)
        {
            switch (input.ToLower())
            {
                case "call":
                    frame = new clsFrame("call");
                    lblFrame.Text = frame.name; break;
                //Only Load Names and Numbers Grammars
                case "callback":
                    frame = new clsFrame("callback");
                    lblFrame.Text = frame.name; break;
                case "re dial":
                    frame = new clsFrame("redial");
                    lblFrame.Text = frame.name; break;

                case "message":
                    frame = new clsFrame("message");
                    lblFrame.Text = frame.name; break;

                case "pairing":
                    frame = new clsFrame("pairing");
                    lblFrame.Text = frame.name; break;
                case "time":
                    frame = new clsFrame("time");
                    lblFrame.Text = frame.name; break;
                case "play":
                    frame = new clsFrame("play");
                    lblFrame.Text = frame.name; break;
                case "stop":
                    frame = new clsFrame("stop");
                    lblFrame.Text = frame.name; break;
                case "pause":
                    frame = new clsFrame("pause");
                    lblFrame.Text = frame.name; break;
                case "accept":
                    frame = new clsFrame("accept");
                    lblFrame.Text = frame.name; break;
                case "read":
                    frame = new clsFrame("read");
                    lblFrame.Text = frame.name; break;
                case "addressbook":
                    frame = new clsFrame("addressbook");
                    lblFrame.Text = frame.name; break;

                case "incoming_sms":
                    frame = new clsFrame("incoming_sms");
                    lblFrame.Text = frame.name; break;

                case "incoming_call":
                    frame = new clsFrame("incoming_call");
                    lblFrame.Text = frame.name;
                    break;
            }
        }