Esempio n. 1
0
        /// <summary>
        /// 事件統一呼叫到此函數,並判斷為哪個按鈕觸發
        /// </summary>
        private void Select_Click(object sender, RoutedEventArgs e)
        {
            Button BtnName = (Button)sender;

            switch (BtnName.Name)
            {
            case "btnVocabulary":
                Vocabulary_Practice vocabulary_Practice = new Vocabulary_Practice();
                vocabulary_Practice.Show();
                this.Close();
                break;

            case "btnCamera":
                //kinect_Capture_Picture = new Kinect_Capture_Picture();
                //kinect_Capture_Picture.Show();
                PeerVocabularyActivity peerVocabularyActivity = new PeerVocabularyActivity();
                peerVocabularyActivity.Show();
                this.Close();
                break;

            case "btnExit":
                Application.Current.Shutdown();
                ThrowKinect();
                break;

            case "btnSpeech":
                Select_Item.SetInteractiveMode = true;
                new IndividualInteractiveActivity().Show();
                this.Close();
                break;

            case "btnEmotion":
                //Select_Item.SetStudentsSentencesMode = true;
                studentsStoryMarking = new StudentsStoryMarking();
                studentsStoryMarking.Show();
                this.Close();
                break;

            case "btnSetting":
                MicrophoneSetting microphoneSetting = new MicrophoneSetting();
                microphoneSetting.Show();
                break;

            default:
                break;
            }
        }
        /// <summary>
        /// 事件統一呼叫到此函數,並判斷為哪個按鈕觸發
        /// </summary>
        private void Select_Click(object sender, RoutedEventArgs e)
        {
            Button BtnName = (Button)sender;

            switch (BtnName.Name)
            {
            case "btnVocabulary":
                Vocabulary_Practice vocabulary_Practice = new Vocabulary_Practice();
                vocabulary_Practice.Show();
                this.Close();
                break;

            case "btnPeerVocabulary":
                PeerVocabularyActivity peerVocabularyActivity = new PeerVocabularyActivity();
                peerVocabularyActivity.Show();
                this.Close();
                break;

            case "btnPeerSentence":
                PeerStudentsStoryMarking peerStudentsStoryMarking = new PeerStudentsStoryMarking();
                peerStudentsStoryMarking.Show();
                this.Close();
                break;

            case "btnInteractive":
                Select_Item.SetPeerStudentsSentencePracticeMode = true;
                Select_Item.SetPeerSentenceGameMode             = true;
                InteractiveActivity interactiveActivity = new InteractiveActivity();
                interactiveActivity.Show();
                this.Close();
                break;

            case "btnSetting":
                MicrophoneSetting microphoneSetting = new MicrophoneSetting();
                microphoneSetting.Show();
                break;

            case "btnExit":
                Application.Current.Shutdown();
                ThrowKinect();
                break;

            default:
                break;
            }
        }