コード例 #1
0
 public void Close()
 {
     foreach (var p in Problems)
     {
         p.Close();
     }
     Problems.Clear();
     FixWhat.Close();
 }
コード例 #2
0
        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);
        }