private void OnRemoveFeedExecute() { RemovedFeeds.Add(SelectedFeed); Feeds.Remove(SelectedFeed); }
public virtual void ReadFrom(XElement xE) { AdGroupId = null; AdGroupChangeStatus = null; ChangedAds = null; ChangedCriteria = null; RemovedCriteria = null; ChangedFeeds = null; RemovedFeeds = null; ChangedAdGroupBidModifierCriteria = null; RemovedAdGroupBidModifierCriteria = null; foreach (var xItem in xE.Elements()) { var localName = xItem.Name.LocalName; if (localName == "adGroupId") { AdGroupId = long.Parse(xItem.Value); } else if (localName == "adGroupChangeStatus") { AdGroupChangeStatus = ChangeStatusExtensions.Parse(xItem.Value); } else if (localName == "changedAds") { if (ChangedAds == null) { ChangedAds = new List <long>(); } ChangedAds.Add(long.Parse(xItem.Value)); } else if (localName == "changedCriteria") { if (ChangedCriteria == null) { ChangedCriteria = new List <long>(); } ChangedCriteria.Add(long.Parse(xItem.Value)); } else if (localName == "removedCriteria") { if (RemovedCriteria == null) { RemovedCriteria = new List <long>(); } RemovedCriteria.Add(long.Parse(xItem.Value)); } else if (localName == "changedFeeds") { if (ChangedFeeds == null) { ChangedFeeds = new List <long>(); } ChangedFeeds.Add(long.Parse(xItem.Value)); } else if (localName == "removedFeeds") { if (RemovedFeeds == null) { RemovedFeeds = new List <long>(); } RemovedFeeds.Add(long.Parse(xItem.Value)); } else if (localName == "changedAdGroupBidModifierCriteria") { if (ChangedAdGroupBidModifierCriteria == null) { ChangedAdGroupBidModifierCriteria = new List <long>(); } ChangedAdGroupBidModifierCriteria.Add(long.Parse(xItem.Value)); } else if (localName == "removedAdGroupBidModifierCriteria") { if (RemovedAdGroupBidModifierCriteria == null) { RemovedAdGroupBidModifierCriteria = new List <long>(); } RemovedAdGroupBidModifierCriteria.Add(long.Parse(xItem.Value)); } } }