Ejemplo n.º 1
0
        private static void OnItemsSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GamesFriendsActivitySectionItemUC activitySectionItemUc = d as GamesFriendsActivitySectionItemUC;

            // ISSUE: explicit reference operation
            if (activitySectionItemUc == null || !(e.NewValue is List <GameActivityHeader>))
            {
                return;
            }
            activitySectionItemUc.UpdateData();
        }
Ejemplo n.º 2
0
        private static void OnItemsDisplayTypeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GamesFriendsActivitySectionItemUC activitySectionItemUc = d as GamesFriendsActivitySectionItemUC;
            FriendsActivitySectionItemType    result;

            // ISSUE: explicit reference operation
            // ISSUE: explicit reference operation
            if (activitySectionItemUc == null || e.NewValue == null || !Enum.TryParse <FriendsActivitySectionItemType>(e.NewValue.ToString(), out result))
            {
                return;
            }
            activitySectionItemUc.UpdateItemType(result);
        }