public PresenterGroup(List <BasePresenter> panels) { if (panels == null) { throw new ArgumentNullException("panels"); } if (panels.Count == 0) { throw new InvalidOperationException("panels.Length == 0"); } Presenters.Clear(); foreach (var item in panels) { if (item.OwnerdPresenterGroup != null) { CLog.Error("item 已经被挂在某个PanelGroup下面"); continue; } item.IsSubPresenter = true; item.OwnerdPresenterGroup = this; Presenters.Add(item); } }
public void Clear() { Presenters.Clear(); }