예제 #1
0
 public NavigationActionEventArgs(string addonName, NavActionType actionType, List <string> paths, object additionalData)
 {
     this.addonName      = addonName;
     this.actionType     = actionType;
     this.paths          = paths;
     this.additionalData = additionalData;
 }
예제 #2
0
        public void TriggerNavAction(NavActionType action)
        {
            switch (action)
            {
            case NavActionType.OPEN_MAIN_MENU:
                OpenMainMenuPanel();
                break;

            case NavActionType.OPEN_CURRENCY_MENU:
                OpenCurrencyPanel();
                break;

            case NavActionType.OPEN_BOOSTS_MENU:
                OpenBoostsPanel();
                break;

            case NavActionType.OPEN_CUSTOMIZE_MENU:
                OpenCustomizePanel();
                break;

            case NavActionType.OPEN_TRAILS_MENU:
                OpenTrailsPanel();
                break;

            case NavActionType.OPEN_SHAPES_MENU:
                OpenShapesPanel();
                break;

            case NavActionType.OPEN_PATTERNS_MENU:
                OpenPatternsPanel();
                break;
            }
        }
예제 #3
0
 public NavigationActionEventArgs(string addonName, NavActionType actionType, List<string> paths, object additionalData)
 {
     this.addonName = addonName;
     this.actionType = actionType;
     this.paths = paths;
     this.additionalData = additionalData;
 }
예제 #4
0
 /// <summary>
 /// Notifies the upper layer about the action.
 /// </summary>
 public void RaiseNavigationAction(NavActionType actionType, List <string> paths, object additionalData)
 {
     if (NavigationAction != null)
     {
         NavigationActionEventArgs args = new NavigationActionEventArgs(this.Name, actionType, paths, additionalData);
         NavigationAction(this, args);
     }
 }
예제 #5
0
 /// <summary>
 /// Notifies the upper layer about the action.
 /// </summary>
 public void RaiseNavigationAction(NavActionType actionType, List<string> paths, object additionalData)
 {
     if (NavigationAction != null)
     {
         NavigationActionEventArgs args = new NavigationActionEventArgs(this.Name, actionType, paths, additionalData);
         NavigationAction(this, args);
     }
 }
예제 #6
0
 /// <summary>
 /// Notifies the upper layer about the action.
 /// </summary>
 public void RaiseNavigationAction(NavActionType actionType, List <string> paths)
 {
     RaiseNavigationAction(actionType, paths, null);
 }
예제 #7
0
 public NavigationActionEventArgs(string addonName, NavActionType actionType, List <string> paths)
 {
     this.addonName  = addonName;
     this.actionType = actionType;
     this.paths      = paths;
 }
예제 #8
0
 /// <summary>
 /// Notifies the upper layer about the action.
 /// </summary>
 public void RaiseNavigationAction(NavActionType actionType, List<string> paths)
 {
     RaiseNavigationAction(actionType, paths, null);
 }
예제 #9
0
 public NavigationActionEventArgs(string addonName, NavActionType actionType, List<string> paths)
 {
     this.addonName = addonName;
     this.actionType = actionType;
     this.paths = paths;
 }