private static void ReomveFromCache(WndAssist wndAssist) { if (AssistBag.Contains(wndAssist)) { AssistBag = AssistBag.xRemove(wndAssist); } }
private static void AddToCache(WndAssist wndAssist) { if (!AssistBag.Contains(wndAssist)) { AssistBag = new ConcurrentBag <WndAssist>(AssistBag) { wndAssist }; } }
public static void CreateAndAttachToDesk(ChatDesk desk) { WndAssist wndAssist = new WndAssist(desk); wndAssist.AttachToDesk(); }