public void Close() { foreach (var p in Problems) { p.Close(); } Problems.Clear(); FixWhat.Close(); }
private ComponentProblem AddProblem(ComponentIndex componentReal, ComponentIndex componentGUI, string problem, ComponentProblemTypes type, object data = null) { var p = new ComponentProblem { Component = componentReal, ComponentGUI = componentGUI, Problem = problem, Type = type, Data = data }; Problems.Add(p); IsProblemsSorted = false; fixWhat = null; return(p); }