Example #1
0
 private void Awake()
 {
     IsScroll  = true;
     moveflag  = true;
     SubPlayer = this.gameObject;
     p         = mainPlayer.gameObject.GetComponent <presentation>();
     content   = Shadow.GetComponent <Transform>();
 }
 private void Btn_stop_Click(object sender, RoutedEventArgs e)
 {
     if (taskPresentWin != null)
     {
         taskPresentWin.Present_Stop();
         taskPresentWin.Close();
         taskPresentWin = null;
     }
     // btn_Start and btn_stop
     btn_start.IsEnabled = true;
     btn_stop.IsEnabled  = false;
 }
        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();
        }
Example #4
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();
        }
Example #5
0
 public void attach(presentation.gui.observer.google_plus.Observer o)
 {
     observers.Add(o);
 }