private static bool GetDisplayer(string displayerName, out InfoDisplayer displayer) { displayer = null; if (!displayers.ContainsKey(displayerName)) { return(false); } displayer = displayers[displayerName]; return(true); }
private static bool LineExists(string tag, InfoDisplayer displayer) { if (!displayer.lines.ContainsKey(tag)) { if (!displayer.acceptUnknown) { return(false); } displayer.lines.Add(tag, new DisplayerLine(tag, tag)); } return(true); }