예제 #1
0
 public void ActivityDestroyed(GlassActivity activity)
 {
     if (_currentActivities.Contains(activity))
     {
         _currentActivities.Remove(activity);
     }
     if (_activeItems.Contains(activity))
     {
         _activeItems.Remove(activity);
     }
 }
예제 #2
0
        public void ActivityCreated(GlassActivity activity)
        {
            _currentActivities.Add(activity);
            _activeItems.Add(activity);

            var menu = activity as MenuActivity;
            if (menu != null)
            {
                menu.OptionsItemSelected += menu_OptionsItemSelected;
            }

            _activeActivity = activity;
        }