public static void RemoveSwitchBoard(SwitchBoard sb) { SwitchBoard old = null; SwitchBoard s; if ((sb == null) || (switchBoards == null)) { return; } for (s = switchBoards; s != null && s != sb; s = s._next) { old = s; } if (s != null) { if (old == null) { switchBoards = s._next; } else { old._next = s._next; } } }
public static SwitchBoard CreateSwitchBoard(String name) { SwitchBoard sb = FindSwitchBoard(name); RemoveSwitchBoard(sb); sb = new SwitchBoard(); sb._name = name; sb._fname = name; sb._next = switchBoards; switchBoards = sb; return(sb); }