public bool Build(CombineRows rows) { Stop(); source.Clear(); Links.Clear(); Errors.Clear(); code = rows; var lines = Preprocessor(); if (Errors.Count != 0) { return(false); } foreach (var line in lines) { Operation op = Link(line.Key, line.Value); if (op != null) { source.Add(op); } } Status = Errors.Count == 0 ? State.Ready : State.Error; return(Errors.Count == 0); }
public CombineRows GetCode() { CombineRows cb = new CombineRows(); foreach (CodeBlock b in Controls) cb.Add(b.CodeEditBox.Rows); return cb; }