internal void CheckTypedefEnd(CommandStatus status, Exception ex, List <TypedefItem> items) { if (status == CommandStatus.Succeed) { TypedefItems.AddRange(items); } }
/// <summary> /// 载入处理 /// </summary> public void OnSolutionLoad() { if (!Solutions.Contains(Solution)) { Solutions.Add(Solution); } Entities.AddRange(Solution.Entities); Projects.AddRange(Solution.Projects); Enums.AddRange(Solution.Enums); TypedefItems.AddRange(Solution.TypedefItems); NotifyItems.AddRange(Solution.NotifyItems); ApiItems.AddRange(Solution.ApiItems); Solution.Entities.CollectionChanged += (s, e) => CollectionChanged(Entities, e); Solution.Projects.CollectionChanged += (s, e) => CollectionChanged(Projects, e); Solution.Enums.CollectionChanged += (s, e) => CollectionChanged(Projects, e); Solution.TypedefItems.CollectionChanged += (s, e) => CollectionChanged(TypedefItems, e); Solution.ApiItems.CollectionChanged += (s, e) => CollectionChanged(Projects, e); Solution.NotifyItems.CollectionChanged += (s, e) => CollectionChanged(Projects, e); }