Beispiel #1
0
        /// <summary>
        /// Handle the selection - navigate, launch app etc
        /// </summary>
        /// <param name="itemTag">item tag of selected item</param>
        private void handleSelect(ItemTag itemTag)
        {
            switch (itemTag.DataType)
            {
            case ItemTag.ItemType.NextPage:
                gotoNextPage();
                break;

            case ItemTag.ItemType.PreviousPage:
                gotoPreviousPage();
                break;

            case ItemTag.ItemType.OrderBy:
                switchSortOrder();
                break;

            case ItemTag.ItemType.App:
                if (itemTag.ApplicationInfo != null)
                {
                    if (DialogUtils.ConfirmScanner("Launch " + itemTag.ApplicationInfo.Name + "?"))
                    {
                        if (EvtLaunchApp != null)
                        {
                            EvtLaunchApp.BeginInvoke(this, itemTag.ApplicationInfo, null, null);
                            return;
                        }
                    }
                }

                break;
            }
        }
Beispiel #2
0
 /// <summary>
 /// Confirms if the user wants to launch the selected
 /// app. If so, triggers an event to indicate that the user
 /// wants to launch the app.
 /// </summary>
 /// <param name="appInfo"></param>
 private void handleAppSelect(AppInfo appInfo)
 {
     if (DialogUtils.ConfirmScanner(String.Format(R.GetString("LaunchAppQ"), appInfo.Name)))
     {
         if (EvtLaunchApp != null)
         {
             EvtLaunchApp.BeginInvoke(this, appInfo, null, null);
         }
     }
 }
Beispiel #3
0
 /// <summary>
 /// Confirms if the user wants to launch the selected
 /// app. If so, triggers an event to indicate that the user
 /// wants to launch the app.
 /// </summary>
 /// <param name="appInfo"></param>
 private void handleAppSelect(AppInfo appInfo)
 {
     if (DialogUtils.ConfirmScanner(string.Format(Resources.Launch0, appInfo.Name)))
     {
         if (EvtLaunchApp != null)
         {
             EvtLaunchApp.BeginInvoke(this, appInfo, null, null);
         }
     }
 }
Beispiel #4
0
 /// <summary>
 /// Confirms if the user wants to launch the selected
 /// app. If so, triggers an event to indicate that the user
 /// wants to launch the app.
 /// </summary>
 /// <param name="appInfo"></param>
 private void handleAppSelect(AppInfo appInfo)
 {
     if (DialogUtils.ConfirmScanner("Launch " + appInfo.Name + "?"))
     {
         if (EvtLaunchApp != null)
         {
             EvtLaunchApp.BeginInvoke(this, appInfo, null, null);
         }
     }
 }