protected override bool OnDeserializeUnrecognizedElement(string elementName, XmlReader reader) { RecentConnectionConfigElement element = null; switch (elementName) { case "localManager": element = new RecentConnectionConfigElement(); break; case "localQueue": element = new RecentQueueConnectionConfigElement(); break; case "remoteManager": element = new RecentRemoteConnectionConfigElement(); break; case "remoteQueue": element = new RecentRemoteQueueConnectionConfigElement(); break; } if (element != null) { element.DeserializeElementInternal(reader); base.BaseAdd(element); return(true); } else { return(false); } }
private void SetRecentConnectionsInternal(ObservableCollection <RecentConnection> rc) { Connection.RecentList.Clear(); foreach (RecentConnection x in rc) { var item = RecentConnectionConfigElement.ConvertFromModel(x); Connection.RecentList.Add(item); } }
public void Add(RecentConnectionConfigElement element) { BaseAdd(element); }