ACAT.Extensions.Default.FunctionalAgents.LaunchAppAgent.LaunchAppScanner.handleWidgetSelection C# (CSharp) Method

handleWidgetSelection() private method

Handle the selection - navigate, launch app etc
private handleWidgetSelection ( ACAT.Lib.Core.WidgetManagement.Widget widget, bool &handled ) : void
widget ACAT.Lib.Core.WidgetManagement.Widget
handled bool
return void
        private void handleWidgetSelection(Widget widget, ref bool handled)
        {
            if (widget.UserData is AppInfo)
            {
                handleAppSelect((AppInfo)widget.UserData);
                handled = true;
            }
            else
            {
                handled = true;
                switch (widget.Value)
                {
                    case "@Quit":
                        if (EvtQuit != null)
                        {
                            EvtQuit.BeginInvoke(null, null, null, null);
                        }
                        break;

                    case "@AppListSort":
                        switchSortOrder();
                        break;

                    case "@AppListNextPage":
                        gotoNextPage();
                        break;

                    case "@AppListPrevPage":
                        gotoPreviousPage();
                        break;

                    case "@AppListSearch":
                        if (EvtShowScanner != null)
                        {
                            EvtShowScanner.BeginInvoke(null, null, null, null);
                        }
                        break;

                    case "@AppListClearFilter":
                        ClearFilter();
                        break;

                    default:
                        handled = false;
                        break;
                }
            }
        }