Exemple #1
0
 private bool MustActivateKeysFirst_GOUI()
 {
     if (_currentSwitchFunction != SwitchFunction.GOUI)
     {
         _currentSwitchFunction = SwitchFunction.GOUI;
         SwitchType             = SwitchType.Activate;
         ChangeControls?.Invoke(this);
         _switcher.UseGOUISwitcher(SwitchType);
         return(true);
     }
     return(false);
 }
Exemple #2
0
 private bool MustActivateKeysFirst_Switch()
 {
     if (_currentSwitchFunction != SwitchFunction.UI)
     {
         _currentSwitchFunction = SwitchFunction.UI;
         SwitchType             = SwitchType.Activate;
         ChangeControls?.Invoke(this);
         _homeGroup.SwitchHomeGroups(SwitchType);
         return(true);
     }
     return(false);
 }
Exemple #3
0
    private bool MustActivateKeysFirst_Branch()
    {
        if (_currentSwitchFunction != SwitchFunction.Branch)
        {
            _currentSwitchFunction = SwitchFunction.Branch;
            SwitchType             = SwitchType.Activate;
            ChangeControls?.Invoke(this);

            var activeBranch = _myDataHub.ActiveBranch;
            activeBranch.GroupIndex = BranchGroups.SwitchBranchGroup(activeBranch.BranchGroupsList,
                                                                     activeBranch.GroupIndex,
                                                                     SwitchType.Activate);
            return(true);
        }
        return(false);
    }