Example #1
0
        public void presentation_Start()
        {// Start presentation
            // save all the Input parameters
            saveInputParameters();

            // Disable Set Paremeter Functions
            DisabledSetParameters();

            // Set btn_Start,  btn_stop and btn_pause
            btn_start.IsEnabled = false;
            btn_stop.IsEnabled  = true;
            btn_pause.IsEnabled = true;
            UninitializeHotKey(HotKeyId_Start);
            InitializeHotKey(key_Stop, HotKeyId_Stop);
            InitializeHotKey(key_Pause, HotKeyId_Pause);

            // Create Presentation Instance only at the First Start Click
            if (hasStartedPresention == false)
            {
                taskPresentWin = new presentation(this)
                {
                    Top  = Rect_touchScreen.Top,
                    Left = Rect_touchScreen.Left,

                    Name  = "childWin_Task",
                    Owner = this
                };

                hasStartedPresention = true;
            }

            // Start the Task
            taskPresentWin.Show();
            taskPresentWin.Prepare_bef_Present();
            taskPresentWin.Present_Start();
        }
        private void btnStart_Click(object sender, RoutedEventArgs e)
        {
            // save all the Input parameters
            saveInputParameters();

            // btn_Start and btn_stop
            btn_start.IsEnabled = false;
            btn_stop.IsEnabled  = true;


            // Show the taskpresent Window on the Touch Screen
            taskPresentWin      = new presentation(this);
            taskPresentWin.Top  = Rect_touchScreen.Top;
            taskPresentWin.Left = Rect_touchScreen.Left;

            taskPresentWin.Name  = "childWin_Task";
            taskPresentWin.Owner = this;



            // Start the Task
            taskPresentWin.Show();
            taskPresentWin.Present_Start();
        }