Exemplo n.º 1
0
        private void btnStartPracticing_Click(object sender, RoutedEventArgs e)
        {
            // Switch to the full screen
            timer_kinect.Stop();
            interface_recorder.TurnOffKinectSensor();
            frmMain main_form = (frmMain)((Grid)this.Parent).Parent;

            main_form.SwitchWindow(ContentInMainForm.Practice_FullScreen);
        }
        private void StopRecording()
        {
            timer_kinect_.Stop();
            interface_recorder.StopRecordingONI();
            interface_recorder.TurnOffKinectSensor();

            interface_recorder.StopRecording_Webcam();
            interface_recorder.TurnOffWebcam();

            // Switch to the result window
            frmMain main_form = (frmMain)((Grid)this.Parent).Parent;

            main_form.SwitchWindow(ContentInMainForm.Result);

            status_ = Status.Nothing;
            ChangeLayout();
        }
Exemplo n.º 3
0
        void btnBack_Click(object sender, RoutedEventArgs e)
        {
            frmMain frm = (frmMain)((Grid)((UserControl)((Grid)this.Parent).Parent).Parent).Parent;

            frm.SwitchWindow(go_back_content_);
        }
Exemplo n.º 4
0
        private void btnPractice_Click(object sender, RoutedEventArgs e)
        {
            frmMain main_form = (frmMain)((Grid)this.Parent).Parent;

            main_form.SwitchWindow(ContentInMainForm.Practice_FullScreen);
        }