示例#1
0
        public void EntrySelected(int position)
        {
            UIObject obj = Items[position];

            if (!(obj is Zone) && obj.HasOnClick)
            {
                obj.CallOnClick();
            }
            else
            {
                ctrl.ShowScreen(ScreenType.Details, obj);
            }
        }
示例#2
0
 /// <summary>
 /// Makes the app show the details of a thing.
 /// </summary>
 /// <param name="t"></param>
 private void ShowDetails(UIObject t)
 {
     if (t.HasOnClick)
     {
         // Runs the on-click command.
         t.CallOnClick();
     }
     else
     {
         // Navigates to the appropriate view.
         App.Current.ViewModel.NavigationManager.NavigateToView(t);
     }
 }