示例#1
0
 private static bool GetDisplayer(string displayerName, out InfoDisplayer displayer)
 {
     displayer = null;
     if (!displayers.ContainsKey(displayerName))
     {
         return(false);
     }
     displayer = displayers[displayerName];
     return(true);
 }
示例#2
0
 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);
 }