public void ActivityDestroyed(GlassActivity activity) { if (_currentActivities.Contains(activity)) { _currentActivities.Remove(activity); } if (_activeItems.Contains(activity)) { _activeItems.Remove(activity); } }
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; }