Esempio n. 1
0
        public void HandleWord(string word)
        {
            if (word == "STOP" && Recording)
            {
                LogManager.StopRecordingLastLog();
                BeepStopSound.Play();
                Recording = false;
            }

            if (Recording)
            {
                return;
            }

            switch (word)
            {
            case "EXTRACT":
            {
                Switch.Window.Show();
                Switch.GetSwitchable <MainPage>().ExportLogs(null, null);
                break;
            }

            case "PLAY": LogManager.PlayLastLog(); break;

            case "CLOSE": Switch.Window.Hide(); break;

            case "EXIT": Switch.Window.Close(); break;

            case "SHOW": Switch.Window.Show(); break;

            case "RECORD":
            {
                if (Recording == false)
                {
                    Recording = true;
                    BeepStartSound.Play();
                    LogManager.AddLog();
                }

                break;
            }
            }
        }
Esempio n. 2
0
 public Speech()
 {
     BeepStartSound.OpenFile(StartSound);
     BeepStopSound.OpenFile(StopSound);
 }