Пример #1
0
        public BaseDiffViewItem GetViewItems(BaseDiffViewItem parent)
        {
            BaseDiffViewItem Item = new BaseDiffViewItem(parent);

            Item.IconString = IconString;
            Item.Name       = Name;

            return(Item);
        }
Пример #2
0
        public BaseDiffViewItem GetViewItems(BaseDiffViewItem parent)
        {
            BaseDiffViewItem Item = new BaseDiffViewItem(parent);

            Item.IconString = IconString;
            Item.Name       = Name;

            foreach (RegDiffItemInfo regItem in Items)
            {
                Item.Children.Add(regItem.GetViewItems(Item));
            }

            return(Item);
        }
Пример #3
0
        public BaseDiffViewItem GetViewItems(BaseDiffViewItem parent)
        {
            BaseDiffViewItem Item = new BaseDiffViewItem(parent);

            Item.IconString = IconString;
            Item.Name       = Name;

            foreach (SecEditDiffValueInfo secItem in Values)
            {
                Item.Children.Add(secItem.GetViewItems(Item));
            }

            return(Item);
        }
Пример #4
0
        public BaseDiffViewItem GetViewItems(BaseDiffViewItem parent)
        {
            BaseDiffViewItem Item = new BaseDiffViewItem(parent);

            Item.IconString = IconString;
            Item.Name       = Name;

            foreach (WMIDiffInfoItem wmiItem in WMIItems)
            {
                Item.Children.Add(wmiItem.GetViewItems(Item));
            }

            return(Item);
        }
Пример #5
0
        public BaseDiffViewItem GetViewItems(BaseDiffViewItem parent)
        {
            BaseDiffViewItem Item = new BaseDiffViewItem(parent);

            Item.IconString = IconString;
            Item.Name       = Name;

            foreach (LinkageDiffInfoItem linkageItem in Linkages)
            {
                Item.Children.Add(linkageItem.GetViewItems(Item));
            }

            return(Item);
        }
Пример #6
0
        public BaseDiffViewItem GetViewItems(BaseDiffViewItem parent)
        {
            BaseDiffViewItem Item = new BaseDiffViewItem(parent);

            Item.IconString = IconString;
            Item.Name       = Name;

            foreach (AssignmentsDiffInfoItem assignedItem in Assignmments)
            {
                Item.Children.Add(assignedItem.GetViewItems(Item));
            }

            return(Item);
        }
Пример #7
0
        public BaseDiffViewItem GetViewItems(BaseDiffViewItem parent)
        {
            BaseDiffViewItem Item = new BaseDiffViewItem(parent);

            Item.IconString = IconString;

            Item.Name = Name;

            foreach (XmlPropertyDiffInfo propInfo in propItems)
            {
                Item.Children.Add(propInfo.GetViewItems(Item));
            }

            foreach (XmlNodeDiffInfo nodeItem in nodeItems)
            {
                Item.Children.Add(nodeItem.GetViewItems(Item));
            }

            return(Item);
        }
Пример #8
0
        public BaseDiffViewItem(BaseDiffViewItem parent)
        {
            _parent = parent;

            _children = new ObservableCollection <BaseDiffViewItem>();
        }
Пример #9
0
        public BaseDiffViewItem GetViewItems(BaseDiffViewItem parent)
        {
            BaseDiffViewItem Item = new BaseDiffViewItem(parent);

            Item.IconString = IconString;
            Item.Name       = Name;

            if (SecEditDifferenceInfo.Type != SecEditDiffInfo.UNCHANGED_POLICY_ITEM)
            {
                Item.Children.Add(SecEditDifferenceInfo.GetViewItems(Item));
            }

            if (IEAKDifferenceInfo.Type != IEAKDiffInfo.UNCHANGED_POLICY_ITEM)
            {
                Item.Children.Add(IEAKDifferenceInfo.GetViewItems(Item));
            }

            if (IEAKMachineDifferenceInfo.Type != IEAKDiffInfo.UNCHANGED_POLICY_ITEM)
            {
                Item.Children.Add(IEAKMachineDifferenceInfo.GetViewItems(Item));
            }

            if (WMIDifferenceInfo.Type != WMIDiffInfo.UNCHANGED_POLICY_ITEM)
            {
                Item.Children.Add(WMIDifferenceInfo.GetViewItems(Item));
            }

            if (LinkageDifferenceInfo.Type != LinkageDiffInfo.UNCHANGED_POLICY_ITEM)
            {
                Item.Children.Add(LinkageDifferenceInfo.GetViewItems(Item));
            }

            if (AssignmentsDifferenceInfo.Type != AssignmentsDiffInfo.UNCHANGED_POLICY_ITEM)
            {
                Item.Children.Add(AssignmentsDifferenceInfo.GetViewItems(Item));
            }

            if (MachineRegDifferenceInfo.Type != RegDiffInfo.UNCHANGED_POLICY_ITEM)
            {
                Item.Children.Add(MachineRegDifferenceInfo.GetViewItems(Item));
            }

            if (UserRegDifferenceInfo.Type != RegDiffInfo.UNCHANGED_POLICY_ITEM)
            {
                Item.Children.Add(UserRegDifferenceInfo.GetViewItems(Item));
            }


            if (PreferenceDifferenceInfo.Type != XmlNodeDiffInfo.UNCHANGED_POLICY)
            {
                Item.Children.Add(PreferenceDifferenceInfo.GetViewItems(Item));
            }

            if (MachinePreferenceDifferenceInfo.Type != XmlNodeDiffInfo.UNCHANGED_POLICY)
            {
                Item.Children.Add(MachinePreferenceDifferenceInfo.GetViewItems(Item));
            }

            // if (AvectoDifferenceInfo.Type != XmlNodeDiffInfo.UNCHANGED_POLICY)
            //    Item.Children.Add(AvectoDifferenceInfo.GetViewItems(Item));

            //if (UserAvectoDifferenceInfo.Type != XmlNodeDiffInfo.UNCHANGED_POLICY)
            //    Item.Children.Add(UserAvectoDifferenceInfo.GetViewItems(Item));

            return(Item);
        }