public Window Get(Flow.Data.FlowWindow window) { Window result = null; this.list.RemoveAll((info) => { var w = Flow.FlowSystem.GetWindow(info.id); return(w == null || w.IsSocial() == false); }); if (window.IsSocial() == false) { return(result); } foreach (var item in this.list) { if (item.id == window.id) { result = item; break; } } if (result == null) { result = new Window(window); this.list.Add(result); } return(result); }
public Window(Flow.Data.FlowWindow source) { this.id = source.id; }