public OutputWriter(Sandbox sb) { sandbox = sb; mainChain = chains[MainChannelName] = new OutputChain(sb, MainChannelName); chainStack.Push(mainChain); activeChains.Add(mainChain); }
public void OpenChannel(string name, ChannelVisibility visibility) { OutputChain chain; if (!chains.TryGetValue(name, out chain)) { chain = chains[name] = new OutputChain(sandbox, name); } else if (activeChains.Contains(chain)) { return; } chain.Visibility = visibility; chainStack.Push(chain); activeChains.Add(chain); }