Beispiel #1
0
 // Invoke the Changed event; called whenever repetitions changes
 protected virtual void OnClick(GuiButtonClickedArgs e)
 {
     if (ClickEvent != null)
     {
         ClickEvent(this, e);
     }
 }
Beispiel #2
0
        /// <summary>
        /// Central button click management.
        /// </summary>
        private void GuiButtonWasClicked(object sender, GuiButtonClickedArgs e)
        {
            switch (e.ClickedOn)
            {
            case "Start":
                if (_catalogManager.GetSelectedWorkouts().Length != 0)
                {
                    ScreenState = UserInterface.ScreenState.Hidden;
                    OnTransition(new TransitionEventArgs(Title, e.ClickedOn));
                    _catalogManager.Status = CatalogManagerStatus.Complete;
                }
                break;

            case "SensorSetup":
                ScreenState = UserInterface.ScreenState.Active | UserInterface.ScreenState.NonInteractive;
                OnTransition(new TransitionEventArgs(Title, e.ClickedOn));
                break;

            case "ExitProgram":
                OnTransition(new TransitionEventArgs(Title, e.ClickedOn));
                break;

            default:
                ChangeCategory(e.ClickedOn);
                break;
            }
        }
Beispiel #3
0
 /// <summary>
 /// Central button click management.
 /// </summary>
 private void GuiButtonWasClicked(object sender, GuiButtonClickedArgs e)
 {
     switch (e.ClickedOn)
     {
     case "Submit":
     case "Cancel":
         ScreenState = UserInterface.ScreenState.Hidden;
         OnTransition(new TransitionEventArgs(Title, "Return"));
         break;
     }
 }
Beispiel #4
0
        /// <summary>
        /// Central button click management.
        /// </summary>
        private void GuiButtonWasClicked(object sender, GuiButtonClickedArgs e)
        {
            switch (e.ClickedOn)
            {
            case "UpdateQueue":
                changeTileQueueStatus();
                break;

            case "EditSettings":
                /** Add to the queue if it is not already */
                ChangeTileQueueStatus(true);
                OnEditSettings(new EditCatalogSettingsArgs(ItemID));
                break;
            }
        }
Beispiel #5
0
        /// <summary>
        /// Central button click management.
        /// </summary>
        private void GuiButtonWasClicked(object sender, GuiButtonClickedArgs e)
        {
            switch (e.ClickedOn)
            {
            case "Menu":
                ScreenState = UserInterface.ScreenState.Hidden;
                OnTransition(new TransitionEventArgs(Title, e.ClickedOn));
                break;

            case "Skip":
                _exerciseQueue.NextExercise();
                break;

            case "EndQueue":
                _exerciseQueue.ForceQueueEnd();
                break;
            }
        }
Beispiel #6
0
        /// <summary>
        /// Central button click management.
        /// </summary>
        private void GuiButtonWasClicked(object sender, GuiButtonClickedArgs e)
        {
            InputBoxSelected(sender, new SelectedEventArgs(e.ClickedOn));

            switch (e.ClickedOn)
            {
            case "Submit":
                ScreenState = UserInterface.ScreenState.Hidden;
                SaveChanges();
                OnTransition(new TransitionEventArgs(Title, "Return"));
                break;

            case "Cancel":
                ScreenState = UserInterface.ScreenState.Hidden;
                OnTransition(new TransitionEventArgs(Title, "Return"));
                break;
            }
        }
Beispiel #7
0
        /// <summary>
        /// Central button click management.
        /// </summary>
        private void GuiButtonWasClicked(object sender, GuiButtonClickedArgs e)
        {
            switch (e.ClickedOn)
            {
            case "Catalog":
                ScreenState = UserInterface.ScreenState.Hidden;
                OnTransition(new TransitionEventArgs(Title, e.ClickedOn));
                break;

            case "SensorSetup":
                ScreenState = UserInterface.ScreenState.Active | UserInterface.ScreenState.NonInteractive;
                OnTransition(new TransitionEventArgs(Title, e.ClickedOn));
                break;

            case "ExitProgram":
                OnTransition(new TransitionEventArgs(Title, e.ClickedOn));
                break;
            }
        }
Beispiel #8
0
        /// <summary>
        /// Central button click management.
        /// </summary>
        private void GuiButtonWasClicked(object sender, GuiButtonClickedArgs e)
        {
            switch (e.ClickedOn)
            {
            case "ExitProgram":
            case "Finished":
                ScreenState = UserInterface.ScreenState.Hidden;
                CloseReplay();
                OnTransition(new TransitionEventArgs(Title, e.ClickedOn));
                break;

            case "Replay":
                _recordingManager.RestartReplay();
                break;

            case "Change":
                CloseReplay();
                break;
            }
        }
 /// <summary>
 /// Central button click management.
 /// </summary>
 private void GuiButtonWasClicked(object sender, GuiButtonClickedArgs e)
 {
     switch (e.ClickedOn)
     {
         case "Menu":
             ScreenState = UserInterface.ScreenState.Hidden;
             OnTransition(new TransitionEventArgs(Title, e.ClickedOn));
             break;
         case "Skip":
             break;
         case "End Queue":
             break;
     }
 }
 /// <summary>
 /// Central button click management.
 /// </summary>
 private void GuiButtonWasClicked(object sender, GuiButtonClickedArgs e)
 {
     switch (e.ClickedOn)
     {
         case "Start":
             if (_catalogManager.GetSelectedWorkouts().Length != 0)
             {
                 ScreenState = UserInterface.ScreenState.Hidden;
                 OnTransition(new TransitionEventArgs(Title, e.ClickedOn));
                 _catalogManager.Status = CatalogManagerStatus.Complete;
             }
             break;
         case "SensorSetup":
             ScreenState = UserInterface.ScreenState.Active | UserInterface.ScreenState.NonInteractive;
             OnTransition(new TransitionEventArgs(Title, e.ClickedOn));
             break;
         case "ExitProgram":
             OnTransition(new TransitionEventArgs(Title, e.ClickedOn));
             break;
         default:
             changeCategory(e.ClickedOn);
             break;
     }
 }
 /// <summary>
 /// Central button click management.
 /// </summary>
 private void GuiButtonWasClicked(object sender, GuiButtonClickedArgs e)
 {
     switch (e.ClickedOn)
     {
         case "Submit":
         case "Cancel":
             ScreenState = UserInterface.ScreenState.Hidden;
             OnTransition(new TransitionEventArgs(Title, "Return"));
             break;
     }
 }
 /// <summary>
 /// Central button click management.
 /// </summary>
 private void GuiButtonWasClicked(object sender, GuiButtonClickedArgs e)
 {
     switch (e.ClickedOn)
     {
         case "UpdateQueue":
             changeTileQueueStatus();
             break;
         case "EditSettings":
             /** Add to the queue if it is not already */
             changeTileQueueStatus(true);
             OnEditSettings(new EditCatalogSettingsArgs(ItemID));
             break;
     }
 }
 /// <summary>
 /// Central button click management.
 /// </summary>
 private void GuiButtonWasClicked(object sender, GuiButtonClickedArgs e)
 {
     switch (e.ClickedOn)
     {
         case "LogIn":
             ScreenState = UserInterface.ScreenState.Hidden;
             OnTransition(new TransitionEventArgs(Title, e.ClickedOn));
             break;
         case "SensorSetup":
             ScreenState = UserInterface.ScreenState.Active | UserInterface.ScreenState.NonInteractive;
             OnTransition(new TransitionEventArgs(Title, e.ClickedOn));
             break;
         case "ExitProgram":
             OnTransition(new TransitionEventArgs(Title, e.ClickedOn));
             break;
     }
 }
Beispiel #14
0
 // Invoke the Changed event; called whenever repetitions changes
 protected virtual void OnClick(GuiButtonClickedArgs e)
 {
     if (ClickEvent != null)
         ClickEvent(this, e);
 }
        /// <summary>
        /// Central button click management.
        /// </summary>
        private void GuiButtonWasClicked(object sender, GuiButtonClickedArgs e)
        {
            InputBoxSelected(sender, new SelectedEventArgs(e.ClickedOn));

            switch (e.ClickedOn)
            {
                case "Submit":
                    ScreenState = UserInterface.ScreenState.Hidden;
                    saveChanges();
                    OnTransition(new TransitionEventArgs(Title, "Return"));
                    break;
                case "Cancel":
                    ScreenState = UserInterface.ScreenState.Hidden;
                    OnTransition(new TransitionEventArgs(Title, "Return"));
                    break;
            }
        }
 public void clickedOn(object sender, GuiButtonClickedArgs e)
 {
     isClickedOn = true;
 }
 /// <summary>
 /// Central button click management.
 /// </summary>
 private void GuiButtonWasClicked(object sender, GuiButtonClickedArgs e)
 {
     switch (e.ClickedOn)
     {
         case "ExitProgram":
         case "Finished":
             ScreenState = UserInterface.ScreenState.Hidden;
             closeReplay();
             OnTransition(new TransitionEventArgs(Title, e.ClickedOn));
             break;
         case "Replay":
             _recordingManager.RestartReplay();
             break;
         case "Change":
             closeReplay();
             break;
     }
 }